Array.prototype._T2 = 0;
var _U2 = {
_V2: [{
_W2: ["tph_djs.js"],
init: "dj_init"
}],
_X2: [],
_Y2: [{
_Z2: "spr_cars",
width: 72,
height: 96,
__2: 2,
_03: !1,
_13: !1,
preload: !1,
_23: 36,
_33: 96,
_43: 16,
_53: 55,
_63: 48,
_73: 85,
_83: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19]
},
{
_Z2: "spr_decoration",
width: 64,
height: 96,
_03: !1,
_13: !1,
preload: !1,
_23: 32,
_33: 96,
_43: 2,
_53: 60,
_73: 95,
_83: [20, 21, 22, 23]
},
{
_Z2: "spr_lines",
width: 32,
height: 4,
_03: !1,
_13: !1,
preload: !1,
_23: 16,
_53: 31,
_73: 3,
_83: [24]
},
{
_Z2: "spr_roadline_left",
width: 40,
height: 40,
_03: !1,
_13: !1,
preload: !1,
_23: 20,
_53: 39,
_73: 39,
_83: [25]
},
{
_Z2: "spr_roadline_right",
width: 40,
height: 40,
_03: !1,
_13: !1,
preload: !1,
_23: 20,
_53: 39,
_73: 39,
_83: [26]
},
{
_Z2: "spr_play",
width: 80,
height: 80,
_03: !1,
_13: !1,
preload: !1,
_23: 40,
_33: 80,
_53: 79,
_73: 79,
_83: [27]
},
{
_Z2: "spr_smallplay",
width: 40,
height: 40,
_03: !1,
_13: !1,
preload: !1,
_23: 20,
_33: 40,
_53: 39,
_73: 39,
_83: [28]
},
{
_Z2: "spr_plus",
width: 40,
height: 40,
_03: !1,
_13: !1,
preload: !1,
_23: 20,
_33: 40,
_53: 39,
_73: 39,
_83: [29]
},
{
_Z2: "spr_less",
width: 40,
height: 40,
_03: !1,
_13: !1,
preload: !1,
_23: 20,
_33: 40,
_53: 39,
_73: 39,
_83: [30]
},
{
_Z2: "spr_retry",
width: 80,
height: 80,
_03: !1,
_13: !1,
preload: !1,
_23: 40,
_33: 40,
_53: 79,
_73: 79,
_83: [31]
},
{
_Z2: "spr_quit",
width: 80,
height: 80,
_03: !1,
_13: !1,
preload: !1,
_23: 40,
_33: 40,
_53: 79,
_73: 79,
_83: [32]
},
{
_Z2: "spr_sun",
width: 74,
height: 74,
_03: !1,
_13: !1,
preload: !1,
_23: 37,
_33: 37,
_53: 73,
_73: 73,
_83: [33]
},
{
_Z2: "spr_crash",
width: 200,
height: 150,
_03: !1,
_13: !1,
preload: !1,
_23: 100,
_33: 150,
_43: 1,
_53: 198,
_63: 11,
_73: 149,
_83: [34]
},
{
_Z2: "spr_title",
width: 219,
height: 107,
_03: !1,
_13: !1,
preload: !1,
_53: 218,
_73: 106,
_83: [35]
},
{
_Z2: "spr_instructions",
width: 200,
height: 250,
_03: !1,
_13: !1,
preload: !1,
_23: 100,
_33: 250,
_53: 199,
_73: 249,
_83: [36]
},
{
_Z2: "spr_logo",
width: 114,
height: 78,
_03: !1,
_13: !1,
preload: !1,
_53: 113,
_73: 77,
_83: [37]
},
{
_Z2: "spr_flip",
width: 300,
height: 200,
_03: !1,
_13: !1,
preload: !1,
_23: 150,
_33: 100,
_53: 299,
_73: 199,
_83: [38]
}],
_93: [{
_Z2: "bck_game",
_03: !1,
_13: !1,
preload: !1,
_83: 39
}],
_a3: [{
_Z2: "pth_erratic_left",
_b3: 0,
_c3: !1,
_d3: 4,
_e3: [{
_f3: 176,
_g3: 240,
_h3: 100
},
{
_f3: 128,
_g3: 256,
_h3: 100
},
{
_f3: 200,
_g3: 272,
_h3: 100
},
{
_f3: 104,
_g3: 288,
_h3: 100
},
{
_f3: -56,
_g3: 592,
_h3: 100
}]
},
{
_Z2: "pth_erratic_right",
_b3: 0,
_c3: !1,
_d3: 4,
_e3: [{
_f3: 144,
_g3: 240,
_h3: 100
},
{
_f3: 192,
_g3: 256,
_h3: 100
},
{
_f3: 120,
_g3: 272,
_h3: 100
},
{
_f3: 216,
_g3: 288,
_h3: 100
},
{
_f3: 376,
_g3: 592,
_h3: 100
}]
},
{
_Z2: "pth_lefttocenter",
_b3: 0,
_c3: !1,
_d3: 4,
_e3: [{
_f3: 144,
_g3: 240,
_h3: 100
},
{
_f3: 104,
_g3: 280,
_h3: 100
},
{
_f3: 160,
_g3: 280,
_h3: 100
},
{
_f3: 160,
_g3: 608,
_h3: 100
}]
},
{
_Z2: "pth_righttocenter",
_b3: 0,
_c3: !1,
_d3: 4,
_e3: [{
_f3: 168,
_g3: 240,
_h3: 100
},
{
_f3: 208,
_g3: 280,
_h3: 100
},
{
_f3: 152,
_g3: 280,
_h3: 100
},
{
_f3: 152,
_g3: 608,
_h3: 100
}]
},
{
_Z2: "pth_lefttoright",
_b3: 0,
_c3: !1,
_d3: 4,
_e3: [{
_f3: 136,
_g3: 240,
_h3: 100
},
{
_f3: 360,
_g3: 528,
_h3: 100
}]
},
{
_Z2: "pth_righttoleft",
_b3: 0,
_c3: !1,
_d3: 4,
_e3: [{
_f3: 184,
_g3: 240,
_h3: 100
},
{
_f3: -40,
_g3: 536,
_h3: 100
}]
},
{
_Z2: "pth_centertoleft",
_b3: 0,
_c3: !1,
_d3: 4,
_e3: [{
_f3: 160,
_g3: 240,
_h3: 100
},
{
_f3: 160,
_g3: 280,
_h3: 100
},
{
_f3: 120,
_g3: 280,
_h3: 100
},
{
_f3: -40,
_g3: 544,
_h3: 100
}]
},
{
_Z2: "pth_centertoright",
_b3: 0,
_c3: !1,
_d3: 4,
_e3: [{
_f3: 160,
_g3: 240,
_h3: 100
},
{
_f3: 160,
_g3: 280,
_h3: 100
},
{
_f3: 200,
_g3: 280,
_h3: 100
},
{
_f3: 368,
_g3: 560,
_h3: 100
}]
}],
_i3: [_j3, _k3, _l3, _m3, _n3, _o3, _p3, _q3, _r3, _s3, _t3, _u3],
_v3: [],
_w3: [{
_Z2: "fnt_game",
_x3: 18,
bold: !1,
_y3: !1,
_z3: 32,
_A3: 57,
_B3: 1,
antialias: 3,
_C3: "Marmelade Guys",
_D3: 40,
_E3: 1,
_F3: 1,
_G3: [{
_H3: 32,
_I3: " ",
_f3: 55,
_g3: 2,
_J3: 12,
_K3: 26,
shift: 12,
_L3: 0
},
{
_H3: 48,
_I3: "0",
_f3: 49,
_g3: 30,
_J3: 13,
_K3: 22,
shift: 15,
_L3: 2
},
{
_H3: 49,
_I3: "1",
_f3: 84,
_g3: 2,
_J3: 14,
_K3: 22,
shift: 15,
_L3: 2
},
{
_H3: 50,
_I3: "2",
_f3: 38,
_g3: 2,
_J3: 15,
_K3: 22,
shift: 17,
_L3: 2
},
{
_H3: 51,
_I3: "3",
_f3: 69,
_g3: 2,
_J3: 13,
_K3: 24,
shift: 15,
_L3: 1
},
{
_H3: 52,
_I3: "4",
_f3: 20,
_g3: 2,
_J3: 16,
_K3: 23,
shift: 17,
_L3: 1
},
{
_H3: 53,
_I3: "5",
_f3: 2,
_g3: 2,
_J3: 16,
_K3: 23,
shift: 17,
_L3: 1
},
{
_H3: 54,
_I3: "6",
_f3: 100,
_g3: 2,
_J3: 14,
_K3: 22,
shift: 16,
_L3: 1
},
{
_H3: 55,
_I3: "7",
_f3: 18,
_g3: 30,
_J3: 13,
_K3: 23,
shift: 14,
_L3: 1
},
{
_H3: 56,
_I3: "8",
_f3: 2,
_g3: 30,
_J3: 14,
_K3: 22,
shift: 15,
_L3: 1
},
{
_H3: 57,
_I3: "9",
_f3: 33,
_g3: 30,
_J3: 14,
_K3: 21,
shift: 15,
_L3: 0
},
],
}],
_M3: [],
_N3: [{},
],
_O3: [{
_Z2: "obj_control",
_P3: -1,
_Q3: !0,
_R3: 10,
parent: -100,
_S3: _T3,
_U3: _V3,
_W3: _X3,
_Y3: _Z3,
__3: _04,
_14: _24,
_34: _44,
_54: [],
_64: []
},
{
_Z2: "obj_player",
_Q3: !0,
parent: -100,
_S3: _74,
_14: _84,
_94: _a4,
_b4: _c4,
_54: [],
_64: [2, _d4]
},
{
_Z2: "obj_car_center",
_Q3: !0,
_R3: 20,
parent: -100,
_S3: _e4,
_94: _f4,
_g4: _h4,
_54: [],
_64: []
},
{
_Z2: "obj_car_left",
_Q3: !0,
_R3: 20,
parent: 2,
_S3: _i4,
_94: _j4,
_54: [],
_64: []
},
{
_Z2: "obj_car_right",
_Q3: !0,
_R3: 20,
parent: 3,
_S3: _k4,
_54: [],
_64: []
},
{
_Z2: "obj_car_double",
_Q3: !0,
_R3: 20,
parent: 2,
_S3: _l4,
_94: _m4,
_54: [],
_64: []
},
{
_Z2: "obj_car_erratic_left",
_Q3: !0,
_R3: 20,
parent: 2,
_S3: _n4,
_94: _o4,
_54: [],
_64: []
},
{
_Z2: "obj_car_erratic_right",
_Q3: !0,
_R3: 20,
parent: 6,
_S3: _p4,
_54: [],
_64: []
},
{
_Z2: "obj_car_lefttocenter",
_Q3: !0,
_R3: 20,
parent: 6,
_S3: _q4,
_94: _r4,
_54: [],
_64: []
},
{
_Z2: "obj_car_righttocenter",
_Q3: !0,
_R3: 20,
parent: 8,
_S3: _s4,
_54: [],
_64: []
},
{
_Z2: "obj_car_lefttoright",
_Q3: !0,
_R3: 20,
parent: 8,
_S3: _t4,
_54: [],
_64: []
},
{
_Z2: "obj_car_righttoleft",
_Q3: !0,
_R3: 20,
parent: 8,
_S3: _u4,
_54: [],
_64: []
},
{
_Z2: "obj_car_centertoleft",
_Q3: !0,
_R3: 20,
parent: 8,
_S3: _v4,
_54: [],
_64: []
},
{
_Z2: "obj_car_centertoright",
_Q3: !0,
_R3: 20,
parent: 8,
_S3: _w4,
_54: [],
_64: []
},
{
_Z2: "obj_decoration_left",
_P3: 1,
_Q3: !0,
_R3: 20,
parent: -100,
_S3: _x4,
_94: _y4,
_g4: _z4,
_54: [],
_64: []
},
{
_Z2: "obj_decoration_right",
_P3: 1,
_Q3: !0,
_R3: 20,
parent: 14,
_94: _A4,
_54: [],
_64: []
},
{
_Z2: "obj_lines",
_P3: 2,
_Q3: !0,
_R3: 100,
parent: -100,
_S3: _B4,
_14: _C4,
_94: _D4,
_g4: _E4,
_54: [],
_64: []
},
{
_Z2: "obj_roadline_left",
_P3: 3,
_Q3: !0,
_R3: 90,
parent: 16,
_S3: _F4,
_94: _G4,
_54: [],
_64: []
},
{
_Z2: "obj_roadline_right",
_P3: 4,
_Q3: !0,
_R3: 90,
parent: 17,
_S3: _H4,
_54: [],
_64: []
},
{
_Z2: "obj_carselect",
_Q3: !0,
_R3: 20,
parent: -100,
_S3: _I4,
_94: _J4,
_54: [],
_64: []
},
{
_Z2: "obj_play",
_P3: 5,
_Q3: !0,
parent: -100,
_S3: _K4,
_94: _L4,
_M4: _N4,
_54: [],
_64: []
},
{
_Z2: "obj_plus",
_P3: 7,
_Q3: !0,
parent: -100,
_M4: _O4,
_54: [],
_64: []
},
{
_Z2: "obj_less",
_P3: 8,
_Q3: !0,
parent: 21,
_M4: _P4,
_54: [],
_64: []
},
{
_Z2: "obj_smallplay",
_P3: 6,
_Q3: !0,
parent: 21,
_M4: _Q4,
_54: [],
_64: []
},
{
_Z2: "obj_retry",
_P3: 9,
_Q3: !0,
parent: -100,
_S3: _R4,
_S4: _T4,
_54: [],
_64: []
},
{
_Z2: "obj_quit",
_P3: 10,
_Q3: !0,
parent: -1,
_M4: _U4,
_54: [],
_64: []
},
{
_Z2: "obj_instructions",
_P3: 14,
_Q3: !0,
parent: -100,
_S3: _V4,
_14: _W4,
_M4: _X4,
_54: [],
_64: []
},
{
_Z2: "obj_title",
_P3: 13,
_Q3: !0,
parent: -100,
_S3: _Y4,
_14: _Z4,
_g4: __4,
_54: [],
_64: []
},
{
_Z2: "obj_crash",
_P3: 12,
_Q3: !0,
parent: -100,
_S3: _05,
_14: _15,
_94: _25,
_54: [],
_64: []
},
{
_Z2: "obj_logo",
_P3: 15,
_Q3: !0,
parent: -100,
_S3: _35,
_14: _45,
_g4: _55,
_54: [],
_64: []
},
{
_Z2: "obj_fm",
_P3: -1,
_Q3: !0,
_65: !0,
_R3: -99999999,
parent: -100,
_S3: _75,
_94: _85,
_34: _95,
_54: [],
_64: []
}],
_a5: [{
_Z2: "rm_init",
width: 320,
height: 480,
_b5: 0,
_c5: !0,
_d5: [{},
{},
{},
{},
{},
{},
{},
{}],
_e5: [{
_Q3: !0,
_f5: 320,
_g5: 320,
},
{},
{},
{},
{},
{},
{},
{}],
_h5: [{
_f3: 0,
_g3: 0,
index: 30,
id: 100000,
_i5: 0,
_E3: 1,
_F3: 1,
_b5: 4294967295
}],
_j5: []
},
{
_Z2: "rm_game",
width: 320,
height: 480,
_b5: 15380857,
_k5: !1,
_c5: !0,
_l5: !1,
_d5: [{
_Q3: !0,
index: 0,
_m5: !1,
_n5: !1,
},
{},
{},
{},
{},
{},
{},
{}],
_e5: [{
_Q3: !0,
_f5: 320,
_g5: 320,
},
{},
{},
{},
{},
{},
{},
{}],
_h5: [{
_f3: 0,
_g3: 0,
index: 0,
id: 100001,
_i5: 0,
_E3: 1,
_F3: 1,
_b5: 4294967295
}],
_j5: []
},
{
_Z2: "rm_flip",
width: 480,
height: 320,
_b5: 0,
_c5: !0,
_d5: [{},
{},
{},
{},
{},
{},
{},
{}],
_e5: [{
_Q3: !0,
_f5: 480,
_o5: 320,
_g5: 480,
_p5: 320,
},
{},
{},
{},
{},
{},
{},
{}],
_h5: [],
_j5: []
}],
_q5: [0, 1, 2],
_r5: [{
_f3: 290,
_g3: 602,
_J3: 70,
_K3: 50,
_s5: 1,
_t5: 46,
_u5: 70,
_v5: 50,
_w5: 72,
_x5: 96,
_y5: 0
},
{
_f3: 366,
_g3: 602,
_J3: 70,
_K3: 50,
_s5: 1,
_t5: 46,
_u5: 70,
_v5: 50,
_w5: 72,
_x5: 96,
_y5: 0
},
{
_f3: 214,
_g3: 602,
_J3: 71,
_K3: 52,
_s5: 1,
_t5: 44,
_u5: 71,
_v5: 52,
_w5: 72,
_x5: 96,
_y5: 0
},
{
_f3: 58,
_g3: 602,
_J3: 71,
_K3: 52,
_s5: 1,
_t5: 44,
_u5: 71,
_v5: 52,
_w5: 72,
_x5: 96,
_y5: 0
},
{
_f3: 366,
_g3: 370,
_J3: 53,
_K3: 58,
_s5: 11,
_t5: 38,
_u5: 53,
_v5: 58,
_w5: 72,
_x5: 96,
_y5: 0
},
{
_f3: 442,
_g3: 542,
_J3: 53,
_K3: 58,
_s5: 11,
_t5: 38,
_u5: 53,
_v5: 58,
_w5: 72,
_x5: 96,
_y5: 0
},
{
_f3: 78,
_g3: 534,
_J3: 64,
_K3: 62,
_s5: 4,
_t5: 34,
_u5: 64,
_v5: 62,
_w5: 72,
_x5: 96,
_y5: 0
},
{
_f3: 146,
_g3: 538,
_J3: 64,
_K3: 62,
_s5: 4,
_t5: 34,
_u5: 64,
_v5: 62,
_w5: 72,
_x5: 96,
_y5: 0
},
{
_f3: 226,
_g3: 534,
_J3: 70,
_K3: 63,
_s5: 1,
_t5: 33,
_u5: 70,
_v5: 63,
_w5: 72,
_x5: 96,
_y5: 0
},
{
_f3: 366,
_g3: 534,
_J3: 70,
_K3: 63,
_s5: 1,
_t5: 33,
_u5: 70,
_v5: 63,
_w5: 72,
_x5: 96,
_y5: 0
},
{
_f3: 2,
_g3: 950,
_J3: 70,
_K3: 64,
_s5: 1,
_t5: 32,
_u5: 70,
_v5: 64,
_w5: 72,
_x5: 96,
_y5: 0
},
{
_f3: 2,
_g3: 878,
_J3: 70,
_K3: 66,
_s5: 1,
_t5: 30,
_u5: 70,
_v5: 66,
_w5: 72,
_x5: 96,
_y5: 0
},
{
_f3: 2,
_g3: 734,
_J3: 70,
_K3: 68,
_s5: 1,
_t5: 28,
_u5: 70,
_v5: 68,
_w5: 72,
_x5: 96,
_y5: 0
},
{
_f3: 2,
_g3: 806,
_J3: 70,
_K3: 68,
_s5: 1,
_t5: 28,
_u5: 70,
_v5: 68,
_w5: 72,
_x5: 96,
_y5: 0
},
{
_f3: 74,
_g3: 450,
_J3: 72,
_K3: 80,
_s5: 0,
_t5: 16,
_u5: 72,
_v5: 80,
_w5: 72,
_x5: 96,
_y5: 0
},
{
_f3: 150,
_g3: 454,
_J3: 72,
_K3: 80,
_s5: 0,
_t5: 16,
_u5: 72,
_v5: 80,
_w5: 72,
_x5: 96,
_y5: 0
},
{
_f3: 366,
_g3: 442,
_J3: 72,
_K3: 87,
_s5: 0,
_t5: 9,
_u5: 72,
_v5: 87,
_w5: 72,
_x5: 96,
_y5: 0
},
{
_f3: 122,
_g3: 350,
_J3: 71,
_K3: 93,
_s5: 1,
_t5: 3,
_u5: 71,
_v5: 93,
_w5: 72,
_x5: 96,
_y5: 0
},
{
_f3: 2,
_g3: 434,
_J3: 66,
_K3: 96,
_s5: 3,
_t5: 0,
_u5: 66,
_v5: 96,
_w5: 72,
_x5: 96,
_y5: 0
},
{
_f3: 430,
_g3: 258,
_J3: 71,
_K3: 96,
_s5: 0,
_t5: 0,
_u5: 71,
_v5: 96,
_w5: 72,
_x5: 96,
_y5: 0
},
{
_f3: 306,
_g3: 454,
_J3: 53,
_K3: 96,
_s5: 5,
_t5: 0,
_u5: 53,
_v5: 96,
_w5: 64,
_x5: 96,
_y5: 0
},
{
_f3: 2,
_g3: 534,
_J3: 52,
_K3: 96,
_s5: 6,
_t5: 0,
_u5: 52,
_v5: 96,
_w5: 64,
_x5: 96,
_y5: 0
},
{
_f3: 442,
_g3: 442,
_J3: 59,
_K3: 96,
_s5: 2,
_t5: 0,
_u5: 59,
_v5: 96,
_w5: 64,
_x5: 96,
_y5: 0
},
{
_f3: 2,
_g3: 634,
_J3: 50,
_K3: 96,
_s5: 7,
_t5: 0,
_u5: 50,
_v5: 96,
_w5: 64,
_x5: 96,
_y5: 0
},
{
_f3: 74,
_g3: 434,
_J3: 32,
_K3: 4,
_s5: 0,
_t5: 0,
_u5: 32,
_v5: 4,
_w5: 32,
_x5: 4,
_y5: 0
},
{
_f3: 206,
_g3: 206,
_J3: 40,
_K3: 40,
_s5: 0,
_t5: 0,
_u5: 40,
_v5: 40,
_w5: 40,
_x5: 40,
_y5: 0
},
{
_f3: 134,
_g3: 606,
_J3: 40,
_K3: 40,
_s5: 0,
_t5: 0,
_u5: 40,
_v5: 40,
_w5: 40,
_x5: 40,
_y5: 0
},
{
_f3: 430,
_g3: 358,
_J3: 80,
_K3: 80,
_s5: 0,
_t5: 0,
_u5: 80,
_v5: 80,
_w5: 80,
_x5: 80,
_y5: 0
},
{
_f3: 302,
_g3: 554,
_J3: 40,
_K3: 40,
_s5: 0,
_t5: 0,
_u5: 40,
_v5: 40,
_w5: 40,
_x5: 40,
_y5: 0
},
{
_f3: 442,
_g3: 606,
_J3: 40,
_K3: 40,
_s5: 0,
_t5: 0,
_u5: 40,
_v5: 40,
_w5: 40,
_x5: 40,
_y5: 0
},
{
_f3: 250,
_g3: 206,
_J3: 40,
_K3: 40,
_s5: 0,
_t5: 0,
_u5: 40,
_v5: 40,
_w5: 40,
_x5: 40,
_y5: 0
},
{
_f3: 198,
_g3: 370,
_J3: 80,
_K3: 80,
_s5: 0,
_t5: 0,
_u5: 80,
_v5: 80,
_w5: 80,
_x5: 80,
_y5: 0
},
{
_f3: 282,
_g3: 370,
_J3: 80,
_K3: 80,
_s5: 0,
_t5: 0,
_u5: 80,
_v5: 80,
_w5: 80,
_x5: 80,
_y5: 0
},
{
_f3: 226,
_g3: 454,
_J3: 74,
_K3: 74,
_s5: 0,
_t5: 0,
_u5: 74,
_v5: 74,
_w5: 74,
_x5: 74,
_y5: 0
},
{
_f3: 2,
_g3: 206,
_J3: 198,
_K3: 139,
_s5: 1,
_t5: 11,
_u5: 198,
_v5: 139,
_w5: 200,
_x5: 150,
_y5: 0
},
{
_f3: 206,
_g3: 258,
_J3: 219,
_K3: 107,
_s5: 0,
_t5: 0,
_u5: 219,
_v5: 107,
_w5: 219,
_x5: 107,
_y5: 0
},
{
_f3: 306,
_g3: 2,
_J3: 200,
_K3: 250,
_s5: 0,
_t5: 0,
_u5: 200,
_v5: 250,
_w5: 200,
_x5: 250,
_y5: 0
},
{
_f3: 2,
_g3: 350,
_J3: 114,
_K3: 78,
_s5: 0,
_t5: 0,
_u5: 114,
_v5: 78,
_w5: 114,
_x5: 78,
_y5: 0
},
{
_f3: 2,
_g3: 2,
_J3: 300,
_K3: 200,
_s5: 0,
_t5: 0,
_u5: 300,
_v5: 200,
_w5: 300,
_x5: 200,
_y5: 0
},
{
_f3: 4,
_g3: 4,
_J3: 320,
_K3: 480,
_s5: 0,
_t5: 0,
_u5: 320,
_v5: 480,
_w5: 320,
_x5: 480,
_y5: 1
},
{
_f3: 330,
_g3: 2,
_J3: 128,
_K3: 64,
_s5: 0,
_t5: 0,
_u5: 128,
_v5: 64,
_w5: 128,
_x5: 64,
_y5: 1
}],
_z5: ["Speed Trip_texture_0.png", "Speed Trip_texture_1.png"],
_A5: {
_B5: !1,
_C5: 957863138,
_D5: "97c2d90d-bcac-45be-b6f0-ee01172d0a17",
_E5: !1,
_F5: !0,
_G5: !0,
scale: -1,
_H5: !1,
_I5: !1,
_J5: !1,
_K5: !0,
_L5: !1,
_M5: !1,
_N5: !0,
_O5: !1,
_P5: 2,
_Q5: 0,
_R5: !1,
_S5: "speedtrip",
_T5: "Default",
_U5: 0,
_V5: !0,
_W5: 1077126481,
_X5: [119, 74, 119, 165, 79, 49, 225, 43, 155, 57, 79, 252, 73, 17, 179, 48],
_Y5: "gamemaker: studio",
_Z5: 1,
__5: 0,
_06: 0,
_16: 1412976534
}
};
function _26() {}
function _36() {
// updateShare(0);
global._46 = 0;
global._56 = 0;
global._66 = 0;
global._76 = 0;
global._86 = 0;
global._96 = 0;
global._a6 = 0;
global._b6 = 0;
global._c6 = 0;
global._d6 = 0;
global._e6 = 0;
global._f6 = 0;
global._g6 = 0;
global._h6 = 0;
global._i6 = 0;
global._j6 = 0;
global._k6 = 0;
global._l6 = 0;
global._m6 = 0;
global._n6 = 0;
global._o6 = 0;
global._p6 = 0;
global._q6 = 0;
global._r6 = 0;
global._s6 = 0;
global._t6 = 0;
}
function _j3(_u6, _v6) {
if (_w6._x6() > 0.5) {
return _w6._y6[0]
};
return _w6._z6;
}
function _k3(_u6, _v6) {
if (_w6._x6() > 0.5) {
return _w6._A6[0]
};
return _w6._B6;
}
function _l3(_u6, _v6) {
return dj_call1("hide_adrbar", global._q6);
}
function _m3(_u6, _v6) {
return dj_call("installed");
}
function _n3(_u6, _v6) {
if ((((_w6._C6() != 0)) && ((_w6._C6() != 1)))) {
return 1
};
return 0;
}
function _o3(_u6, _v6) {
return dj_call("orientation");
}
function _p3(_u6, _v6) {
return dj_call("height");
}
function _q3(_u6, _v6) {
return dj_call("width");
}
function _r3(_u6, _v6) {
if (dj_exists("resized") > 0.5) {
return 1
};;
global._46 = 0;
global._56 = 0;
global._66 = 0;
global._76 = 0;
global._86 = 0;
global._96 = 0;
global._a6 = 0;
global._b6 = 0;
global._p6 = 0;
global._q6 = 0;
global._r6 = ( - 1);
global._s6 = 1;
global._e6 = 1 ? 1 : 0;
global._c6 = 0;
global._d6 = 1;
global._t6 = 1 ? 1 : 0;
global._f6 = 1;
global._g6 = 1;
global._h6 = 1;
global._j6 = 5000;
global._i6 = 0;
dj_add1("hide_adrbar", "height", "\n\rdocument.getElementById('gm4html5_div_id').style.height = ~~(height + 128) + 'px';\n\rwindow.scrollTo(0, 1)");
dj_add("orientation", "return window.fm_orientation");
dj_add("installed", "return window.navigator.standalone ? 1 : 0");
dj_add("timer", "return (new Date) | 0");
dj_add("resized", "var r = window.fm_resized; window.fm_resized = 0; return r");
dj_add("width", "return screen ? screen.width : window.innerWidth");
dj_add("height", "return screen ? screen.height : window.innerHeight");
dj_run("var e = document.getElementById('gm4html5_div_id');\n\rdocument.body.style.overflow = 'hidden';\n\re.style.paddingTop = '20px';\n\re.style.position = 'absolute';\n\re.style.height = '2048px';\n\rwindow.fm_resized = 1;\n\rwindow.fm_orientation = window.orientation ? window.orientation : 0;\n\rdocument.onorientationchange = window.onorientationchange = function() {\n\rwindow.fm_orientation = window.orientation; window.fm_resized = 1\n\r}\n\rdocument.onresize = window.onresize = function() { window.fm_resized = 1 }\n\r");
dj_run("var e;\n\rif (e = document.getElementById('debug_console')) e.style.display = 'none';\n\rif (e = document.getElementById('loading_screen')) e.style.display = 'none';");
}
function _s3(_u6, _v6) {
var _D6, _E6, _F6, _G6, _H6, _I6, _J6, _K6, _L6, _M6, _N6;
if ((global._s6 > 0)) {
{
global._s6 -= 1;
return 0;
}
};
_J6 = _t3(_u6, _v6);
_M6 = _w6._O6();
_N6 = _w6._P6();
if (((_u3(_u6, _v6) > 0.5) || ((global._r6 != _w6._Q6())) || (global._t6 > 0.5))) {
{
global._t6 = 0 ? 1 : 0;
global._p6 = _M6;
global._q6 = _N6;
global._r6 = _w6._Q6();
_l3(_u6, _v6);
global._i6 = _J6;
_F6 = _k3(_u6, _v6);
_G6 = _j3(_u6, _v6);
_H6 = _F6;
_I6 = _G6;
global._k6 = (((global._p6 / global._q6) > 1) != ((_H6 / _I6) > 1)) ? 1 : 0;
if (_n3(_u6, _v6) > 0.5) {
{
if ((_w6._Q6() != 2)) {
_w6._R6(0)
};
if (((global._k6 > 0.5) && ((_w6._Q6() != 2)))) {
{
if ((global._f6 != 0)) {
global._f6 = (3 - global._f6)
};
global._n6 = _w6._Q6();
_w6._R6(1);
_S6(2);
}
};
if (((global._k6 > 0.5) && ((_w6._Q6() == 2)))) {
{
if ((global._f6 != 0)) {
global._f6 = (3 - global._f6)
};
_S6(global._n6);
}
};
if (((! (global._k6 > 0.5)) && ((_w6._Q6() != 2)) && (global._o6 > 0.5))) {
{
global._o6 = 0 ? 1 : 0;
}
};
}
};
_D6 = (global._p6 / _F6);
_E6 = (global._q6 / _G6);
if ((global._f6 == 1)) {
_E6 = _D6
};
if ((global._f6 == 2)) {
_D6 = _E6
};
if ((global._86 != 0)) {
_D6 = min(_D6, global._86)
};
if ((global._a6 != 0)) {
_D6 = max(_D6, global._a6)
};
if ((global._96 != 0)) {
_E6 = min(_E6, global._96)
};
if ((global._b6 != 0)) {
_E6 = max(_E6, global._b6)
};
_F6 *= _D6;
_G6 *= _E6;
if ((((global._46 != 0)) && ((_F6 > global._46)))) {
_F6 = global._46
};
if ((((global._56 != 0)) && ((_G6 > global._56)))) {
_G6 = global._56
};
_D6 = (_F6 / _H6);
_E6 = (_G6 / _I6);
if (global._e6 > 0.5) {
{
_D6 = min(_D6, _E6);
_E6 = _D6;
}
};
_F6 = (_H6 * _D6);
_G6 = (_I6 * _E6);
_F6 = round(_F6);
_G6 = round(_G6);
_K6 = (global._g6 / 2 * (_w6._O6() - _F6));
_L6 = (1 + (global._h6 / 2 * (_w6._P6() - _G6)));
if ((global._c6 > 0)) {
_K6 = max(_K6, 0)
};
if ((global._c6 < 0)) {
_K6 = min(_K6, (global._p6 - _F6))
};
if ((global._d6 > 0)) {
_L6 = max(_L6, 0)
};
if ((global._d6 < 0)) {
_L6 = min(_L6, (global._q6 - _G6))
};
_T6(_K6, _L6);
_U6(_F6, _G6);
}
};
if (((((_J6 - global._i6) > global._j6)) || ((global._i6 > _J6)))) {
{
_l3(_u6, _v6);
global._i6 = _J6;
}
};
}
function _t3(_u6, _v6) {
return dj_call("timer");
}
function _u3(_u6, _v6) {
return dj_call("resized");
}
function _T3(_u6, _v6) {
{
_V6(0);
_W6(1);
_X6(1);
_Y6(16777215);
_Z6(4, ( - 130), 27);
_Z6(( - 120), 332, 29);
_w6.__6 = 0;
_07("speedtrip");
_u6._17 = _27("score", "0", 0);
_37();
_Z6((_w6._B6 / 2), 236, 16);
if (! (_u6._47 instanceof Array)) {
_u6._47 = [];
_u6._47._T2 = 1584050178
} else if (_u6._47._T2 !== 1584050178) {
_u6._47 = _u6._47.slice(0);
_u6._47._T2 = 1584050178
}
_u6._47[0] = 8;
_u6._47[1] = 8;
_u6._47[2] = _57(10, 15, 20, 30, 45);
_u6._47[3] = _57(10, 15, 20, 30, 45);
};
}
function _V3(_u6, _v6) {
{
if ((_67(1) == 0)) {
{
return;
}
} else {
{
if (! (_u6._47 instanceof Array)) {
_u6._47 = [];
_u6._47._T2 = 1584050178
} else if (_u6._47._T2 !== 1584050178) {
_u6._47 = _u6._47.slice(0);
_u6._47._T2 = 1584050178
}
_u6._47[4] = 24;
}
};
var _77;
_77 = _57(1, 4, 5, 2, 4, 5, 3, 4, 5);
switch (_77) {
case 1:
{
_Z6(((_w6._B6 / 2) - 18), 240, 3);
break;
};
case 2:
{
_Z6((_w6._B6 / 2), 240, 2);
break;
};
case 3:
{
_Z6(((_w6._B6 / 2) + 18), 240, 4);
break;
};
case 4:
{
_Z6((_w6._B6 / 2), 240, 5);
break;
};
case 5:
{
_Z6((_w6._B6 / 2), 240, _57(6, 7, 8, 9, 10, 11, 12, 13));
break;
};
};
};
}
function _X3(_u6, _v6) {
{
if (! (_u6._47 instanceof Array)) {
_u6._47 = [];
_u6._47._T2 = 1584050178
} else if (_u6._47._T2 !== 1584050178) {
_u6._47 = _u6._47.slice(0);
_u6._47._T2 = 1584050178
}
_u6._47[3] = _57(10, 15, 20, 30, 45);
_Z6(_87(200, 300), 240, 15);
};
}
function _Z3(_u6, _v6) {
{
if (! (_u6._47 instanceof Array)) {
_u6._47 = [];
_u6._47._T2 = 1584050178
} else if (_u6._47._T2 !== 1584050178) {
_u6._47 = _u6._47.slice(0);
_u6._47._T2 = 1584050178
}
_u6._47[2] = _57(10, 15, 20, 30, 45);
_Z6(_87(20, 120), 240, 14);
};
}
function _04(_u6, _v6) {
{
_Z6(((_w6._B6 / 2) - 6), 236, 17);
_Z6(((_w6._B6 / 2) + 6), 236, 18);
if (! (_u6._47 instanceof Array)) {
_u6._47 = [];
_u6._47._T2 = 1584050178
} else if (_u6._47._T2 !== 1584050178) {
_u6._47 = _u6._47.slice(0);
_u6._47._T2 = 1584050178
}
_u6._47[1] = 8;
};
}
function _24(_u6, _v6) {
{
_Z6((_w6._B6 / 2), 236, 16);
if (! (_u6._47 instanceof Array)) {
_u6._47 = [];
_u6._47._T2 = 1584050178
} else if (_u6._47._T2 !== 1584050178) {
_u6._47 = _u6._47.slice(0);
_u6._47._T2 = 1584050178
}
_u6._47[0] = 8;
};
}
function _44(_u6, _v6) {
{
_97(_u6, 11, 0, 260, 48);
if ((_67(27) == 0)) {
{
if ((_w6.__6 < _u6._17)) {
{
_a7(64, 48, _w6.__6);
_a7(256, 48, _u6._17);
}
} else {
{
_a7(64, 48, _w6.__6);
_a7(260, 48, _w6.__6);
}
};
}
};
};
}
function _74(_u6, _v6) {
{
if (! (_u6._47 instanceof Array)) {
_u6._47 = [];
_u6._47._T2 = 1584050178
} else if (_u6._47._T2 !== 1584050178) {
_u6._47 = _u6._47.slice(0);
_u6._47._T2 = 1584050178
}
_u6._47[0] = 10;
_u6._b7 = 0;
_u6._c7 = 0;
_u6._d7 = 1;
_u6._e7 = "right";
_u6._f7 = 120;
};
}
function _84(_u6, _v6) {
{
_u6._c7 = 1;
};
}
function _a4(_u6, _v6) {
{
if ((_u6._c7 == 2)) {
{
if ((_u6._f7 > 0)) {
{
_u6._f7 -= 12;
if ((_u6._e7 == "left")) {
{
_u6._g7(_u6._f3 - 12);
}
} else {
{
_u6._g7(_u6._f3 + 12);
}
};
}
} else {
{
_u6._c7 = 1;
_u6._f7 = 120;
}
};
}
};
};
}
function _c4(_u6, _v6) {
{
if ((((_u6._c7 == 1)) && ((_u6._f7 == 120)))) {
{
if ((_w6._h7 < (_w6._B6 / 2))) {
{
if ((((_u6._d7 == 1)) || ((_u6._d7 == 2)))) {
{
_u6._c7 = 2;
_u6._d7 -= 1;
_u6._e7 = "left";
return;
}
};
}
} else {
{
if ((((_u6._d7 == 0)) || ((_u6._d7 == 1)))) {
{
_u6._c7 = 2;
_u6._d7 += 1;
_u6._e7 = "right";
}
};
}
};
}
};
};
}
function _d4(_u6, _v6) {
{
_Z6(_u6._f3, _u6._g3, 28); {
var _i7 = _j7(2);
for (var _k7 in _i7) {
if (!_i7.hasOwnProperty(_k7)) continue;
var _l7 = _i7[_k7];
if (_l7._m7) continue; {
_n7(_l7);
}
}
};
_n7(_u6);
};
}
function _e4(_u6, _v6) {
{
_u6._o7(270);
_u6._p7(0);
_u6._q7(0.1);
_u6._r7(0.1);
_u6._b7 = 0;
_u6._s7(floor(random(_u6._t7())));
_u6._u7 = 1 ? 1 : 0;
};
}
function _f4(_u6, _v6) {
{
_u6._p7(_u6._h3 + 0.2);
if ((_u6._g3 < (_w6._z6 - 72))) {
{
_u6._q7(_u6._v7 + 0.021);
}
} else {
{
_u6._q7(1);
_u6._w7((_x7(1)._y7() - 1));
if ((_u6._u7 == 1)) {
{
_u6._u7 = 0 ? 1 : 0;
_w6.__6 += 1;
}
};
}
};
_u6._r7(_u6._v7);
};
}
function _h4(_u6, _v6) {
{
_z7(_u6);
};
}
function _i4(_u6, _v6) {
{
_u6._o7(235);
_u6._p7(0);
_u6._q7(0.1);
_u6._r7(0.1);
_u6._b7 = 0;
_u6._s7(floor(random(_u6._t7())));
_u6._u7 = 1 ? 1 : 0;
};
}
function _j4(_u6, _v6) {
{
_u6._p7(_u6._h3 + 0.24);
if ((_u6._g3 < (_w6._z6 - 72))) {
{
_u6._q7(_u6._v7 + 0.021);
}
} else {
{
_u6._q7(1);
_u6._w7((_x7(1)._y7() - 1));
if ((_u6._u7 == 1)) {
{
_u6._u7 = 0 ? 1 : 0;
_w6.__6 += 1;
}
};
}
};
_u6._r7(_u6._v7);
};
}
function _k4(_u6, _v6) {
{
_u6._o7(305);
_u6._p7(0);
_u6._q7(0.1);
_u6._r7(0.1);
_u6._b7 = 0;
_u6._s7(floor(random(_u6._t7())));
_u6._u7 = 1 ? 1 : 0;
};
}
function _l4(_u6, _v6) {
{
_u6._o7(270);
_u6._p7(0);
_u6._q7(0.1);
_u6._r7(0.1);
_u6._b7 = 0;
_u6._s7(floor(random(_u6._t7())));
_u6._u7 = 1 ? 1 : 0;
var _77;
_77 = _57(1, 2, 3);
switch (_77) {
case 1:
{
_Z6(((_w6._B6 / 2) - 18), 240, 3);
break;
};
case 2:
{
_Z6(((_w6._B6 / 2) + 18), 240, 4);
break;
};
case 3:
{
_Z6(((_w6._B6 / 2) - 18), 240, 3);
_Z6(((_w6._B6 / 2) + 18), 240, 4);
_n7(_u6);
break;
};
};
};
}
function _m4(_u6, _v6) {
{
_u6._p7(_u6._h3 + 0.2);
if ((_u6._g3 < (_w6._z6 - 72))) {
{
_u6._q7(_u6._v7 + 0.021);
}
} else {
{
_u6._q7(1);
_u6._w7((_x7(1)._y7() - 1));
if ((_u6._u7 == 1)) {
{
_u6._u7 = 0 ? 1 : 0;
_w6.__6 += 1;
}
};
}
};
_u6._r7(_u6._v7);
};
}
function _n4(_u6, _v6) {
{
_u6._q7(0.1);
_u6._r7(0.1);
_u6._b7 = 0;
_u6._s7(floor(random(_u6._t7())));
_u6._u7 = 1 ? 1 : 0;
_A7(_u6, 0, 0, 1, 1);
};
}
function _o4(_u6, _v6) {
{
_u6._B7 += 0.3;
if ((_u6._g3 < (_w6._z6 - 72))) {
{
_u6._q7(_u6._v7 + 0.014);
}
} else {
{
_u6._q7(1);
_u6._w7((_x7(1)._y7() - 1));
if ((_u6._u7 == 1)) {
{
_u6._u7 = 0 ? 1 : 0;
_w6.__6 += 1;
}
};
}
};
_u6._r7(_u6._v7);
};
}
function _p4(_u6, _v6) {
{
_C7(_u6, _v6);
_D7(_u6, 1, 0, 0, 1);
};
}
function _q4(_u6, _v6) {
{
_C7(_u6, _v6);
_D7(_u6, 2, 0, 0, 1);
};
}
function _r4(_u6, _v6) {
{
_u6._B7 += 0.2;
if ((_u6._g3 < (_w6._z6 - 72))) {
{
_u6._q7(_u6._v7 + 0.017);
}
} else {
{
_u6._q7(1);
_u6._w7((_x7(1)._y7() - 1));
if ((_u6._u7 == 1)) {
{
_u6._u7 = 0 ? 1 : 0;
_w6.__6 += 1;
}
};
}
};
_u6._r7(_u6._v7);
};
}
function _s4(_u6, _v6) {
{
_C7(_u6, _v6);
_D7(_u6, 3, 0, 0, 1);
};
}
function _t4(_u6, _v6) {
{
_C7(_u6, _v6);
_D7(_u6, 4, 0, 0, 1);
};
}
function _u4(_u6, _v6) {
{
_C7(_u6, _v6);
_D7(_u6, 5, 0, 0, 1);
};
}
function _v4(_u6, _v6) {
{
_C7(_u6, _v6);
_D7(_u6, 6, 0, 0, 1);
};
}
function _w4(_u6, _v6) {
{
_C7(_u6, _v6);
_D7(_u6, 7, 0, 0, 1);
};
}
function _x4(_u6, _v6) {
{
_u6._E7(0);
_u6._F7(0);
_u6._q7(0.1);
_u6._r7(0.1);
_u6._b7 = 0;
_u6._s7(floor(random(_u6._t7())));
};
}
function _y4(_u6, _v6) {
{
if ((_u6._g3 < 350)) {
{
_u6._F7(_u6._G7 + 0.1);
}
} else {
{
_u6._F7(_u6._G7 + 0.2);
}
};
_u6._E7(_u6._H7 - 0.16);
_u6._q7(_u6._v7 + 0.02);
_u6._r7(_u6._v7);
};
}
function _z4(_u6, _v6) {
{
_z7(_u6);
};
}
function _A4(_u6, _v6) {
{
if ((_u6._g3 < 350)) {
{
_u6._F7(_u6._G7 + 0.1);
}
} else {
{
_u6._F7(_u6._G7 + 0.2);
}
};
_u6._E7(_u6._H7 + 0.16);
_u6._q7(_u6._v7 + 0.02);
_u6._r7(_u6._v7);
};
}
function _B4(_u6, _v6) {
{
_u6._q7(12);
_u6._F7(4);
_u6._I7 = 0 ? 1 : 0;
if (! (_u6._47 instanceof Array)) {
_u6._47 = [];
_u6._47._T2 = 1584050178
} else if (_u6._47._T2 !== 1584050178) {
_u6._47 = _u6._47.slice(0);
_u6._47._T2 = 1584050178
}
_u6._47[0] = 15;
};
}
function _C4(_u6, _v6) {
{
_u6._I7 = 1 ? 1 : 0;
};
}
function _D4(_u6, _v6) {
{
if ((_u6._I7 == 0)) {
{
_u6._r7(_u6._J7 + 0.4);
_u6._F7(_u6._G7 + 0.1);
}
} else {
{
_u6._r7(_u6._J7 + 0.2);
_u6._F7(_u6._G7 + 0.4);
}
};
};
}
function _E4(_u6, _v6) {
{
_z7(_u6);
};
}
function _F4(_u6, _v6) {
{
_u6._o7(245);
_u6._p7(4);
_u6._q7(0.1);
_u6._r7(0.1);
if (! (_u6._47 instanceof Array)) {
_u6._47 = [];
_u6._47._T2 = 1584050178
} else if (_u6._47._T2 !== 1584050178) {
_u6._47 = _u6._47.slice(0);
_u6._47._T2 = 1584050178
}
_u6._47[0] = 15;
_u6._I7 = 0 ? 1 : 0;
};
}
function _G4(_u6, _v6) {
{
if ((_u6._I7 == 0)) {
{
_u6._p7(_u6._h3 + 0.1);
}
} else {
{
_u6._p7(_u6._h3 + 0.4);
}
};
if ((_u6._v7 < 1)) {
{
_u6._q7(_u6._v7 + 0.02);
}
} else {
{
_u6._q7(1);
}
};
_u6._r7(_u6._v7);
};
}
function _H4(_u6, _v6) {
{
_u6._o7(295);
_u6._p7(4);
_u6._q7(0.1);
_u6._r7(0.1);
if (! (_u6._47 instanceof Array)) {
_u6._47 = [];
_u6._47._T2 = 1584050178
} else if (_u6._47._T2 !== 1584050178) {
_u6._47 = _u6._47.slice(0);
_u6._47._T2 = 1584050178
}
_u6._47[0] = 15;
_u6._I7 = 0 ? 1 : 0;
};
}
function _I4(_u6, _v6) {
{
_u6._b7 = 0;
_u6._F7(( - 4));
};
}
function _J4(_u6, _v6) {
{
if ((((_u6._G7 != 0)) && ((_u6._g3 < (_w6._z6 - 70))))) {
{
_u6._F7(0);
_Z6((_u6._f3 - 64), (_u6._g3 - 100), 22);
_Z6((_u6._f3 + 64), (_u6._g3 - 100), 21);
_Z6(_u6._f3, (_u6._g3 - 100), 23);
}
};
};
}
function _K4(_u6, _v6) {
{
_u6._o7(270);
_u6._p7(0);
_u6._q7(0.1);
_u6._r7(0.1);
};
}
function _L4(_u6, _v6) {
{
if ((_u6._g3 < (_w6._z6 - 180))) {
{
_u6._q7(_u6._v7 + 0.034);
_u6._p7(_u6._h3 + 0.16);
}
} else {
{
_u6._q7(1);
_u6._p7(0);
}
};
_u6._r7(_u6._v7);
};
}
function _N4(_u6, _v6) {
{
if ((((_u6._v7 == 1)) && ((_u6._h3 == 0)))) {
{
_x7(27)._F7(( - 2));
_x7(29)._E7(( - 2));
var _K7;
_K7 = _Z6((_w6._B6 / 2), (_w6._z6 + 96), 19);
_x7(_K7)._s7(floor(random(_x7(_K7)._t7())));
_n7(_u6);
}
};
};
}
function _O4(_u6, _v6) {
{
_x7(19)._s7(_x7(19)._L7 + 1);
};
}
function _P4(_u6, _v6) {
{
_x7(19)._s7(_x7(19)._L7 - 1);
};
}
function _Q4(_u6, _v6) {
{
_Z6(_u6._f3, _u6._g3, 26); {
var _M7 = _j7(21);
for (var _N7 in _M7) {
if (!_M7.hasOwnProperty(_N7)) continue;
var _O7 = _M7[_N7];
if (_O7._m7) continue; {
_n7(_O7);
}
}
};
};
}
function _R4(_u6, _v6) {
{
if ((_w6.__6 > _x7(0)._17)) {
{
_x7(0)._17 = _w6.__6;
_07("speedtrip");
_P7("score", "0", _w6.__6);
_37();
}
};
window.myPlayScore = _w6.__6;
// Play68.setRankingScoreDesc(window.myPlayScore);
// updateShare(window.myPlayScore);
//play68_submitScore(window.myPlayScore);
};
}
function _T4(_u6, _v6) {
{
var _K7;
_K7 = _Z6((_w6._B6 / 2), (_w6._z6 + 96), 19);
_x7(_K7)._s7(_x7(0)._Q7);
_w6.__6 = 0;
if (! (_x7(0)._47 instanceof Array)) {
_x7(0)._47 = [];
_x7(0)._47._T2 = 3819530653
} else if (_x7(0)._47._T2 !== 3819530653) {
_x7(0)._47 = _x7(0)._47.slice(0);
_x7(0)._47._T2 = 3819530653
}
_x7(0)._47[4] = 60; {
var _R7 = _j7(25);
for (var _S7 in _R7) {
if (!_R7.hasOwnProperty(_S7)) continue;
var _T7 = _R7[_S7];
if (_T7._m7) continue; {
_n7(_T7);
}
}
};
_n7(_u6);
};
}
function _U4(_u6, _v6) {
{
_U7();
};
}
function _V4(_u6, _v6) {
{
_u6._V7 = 0 ? 1 : 0;
_W7(_u6, 2, 0);
};
}
function _W4(_u6, _v6) {
{
_u6._V7 = 1 ? 1 : 0;
};
}
function _X4(_u6, _v6) {
{
if ((_u6._V7 == 0)) {
{
return;
}
}; {
var _X7 = _j7(19);
for (var _Y7 in _X7) {
if (!_X7.hasOwnProperty(_Y7)) continue;
var _Z7 = _X7[_Y7];
if (_Z7._m7) continue; {
var _K7;
_K7 = _Z6(_Z7._f3, _Z7._g3, 1);
_x7(_K7)._s7(_Z7._L7);
_x7(0)._Q7 = _Z7._L7;
_n7(_Z7);
}
}
};
if (! (_x7(0)._47 instanceof Array)) {
_x7(0)._47 = [];
_x7(0)._47._T2 = 3819530653
} else if (_x7(0)._47._T2 !== 3819530653) {
_x7(0)._47 = _x7(0)._47.slice(0);
_x7(0)._47._T2 = 3819530653
}
_x7(0)._47[4] = 60;
_n7(_u6);
};
}
function _Y4(_u6, _v6) {
{
__7(_u6, 2);
_W7(_u6, 70, 0);
};
}
function _Z4(_u6, _v6) {
{
__7(_u6, 0);
_08(_u6, 20, (_w6._B6 / 2), 240);
};
}
function __4(_u6, _v6) {
{
var _18;
_18 = _28(_u6._G7, 0, 1);
if (_18 > 0.5) {
{
_z7(_u6);
}
};
};
}
function _05(_u6, _v6) {
{
_u6._q7(0.4);
_u6._r7(_u6._v7);
_u6._38 = 0;
};
}
function _15(_u6, _v6) {
{
_u6._38 = 2;
_Z6(((_w6._B6 / 2) - 70), 240, 24);
_Z6(((_w6._B6 / 2) + 70), 240, 25);
};
}
function _25(_u6, _v6) {
{
if ((_u6._38 == 0)) {
{
if ((_u6._v7 < 1)) {
{
_u6._q7(_u6._v7 + 0.04);
}
} else {
{
_u6._q7(1);
_u6._38 = 1;
if (! (_u6._47 instanceof Array)) {
_u6._47 = [];
_u6._47._T2 = 1584050178
} else if (_u6._47._T2 !== 1584050178) {
_u6._47 = _u6._47.slice(0);
_u6._47._T2 = 1584050178
}
_u6._47[0] = 30;
}
};
}
};
if ((_u6._38 == 2)) {
{
if ((_u6._v7 > 0)) {
{
_u6._q7(_u6._v7 - 0.04);
}
} else {
{
_n7(_u6);
}
};
}
};
_u6._r7(_u6._v7);
};
}
function _35(_u6, _v6) {
{
_48(_u6, 2);
_W7(_u6, 64, 0);
};
}
function _45(_u6, _v6) {
{
_48(_u6, 0);
};
}
function _55(_u6, _v6) {
{
var _18;
_18 = _28(_u6._H7, 0, 1);
if (_18 > 0.5) {
{
_z7(_u6);
}
};
};
}
function _75(_u6, _v6) {
{
_58(0);
_r3(_u6, _v6);
global._a6 = 1;
global._b6 = 1;
global._86 = 1;
global._96 = 1;
var _68, _78, _88, _98, _a8;
_68 = _q3(_u6, _v6);
_78 = _p3(_u6, _v6);
if ((((((((min(_68, _78) >= 320)) && ((max(_68, _78) >= 480)))) && (_n3(_u6, _v6) > 0.5))) || ((_w6._C6() == 3)))) {
{
global._86 = (_68 / 320);
global._96 = global._86;
_88 = _k3(_u6, _v6);
_98 = _j3(_u6, _v6);
if ((((_68 != 0)) && ((_78 != 0)))) {
{
if ((((_68 / _78) > 1) != ((_88 / _98) > 1))) {
{
_a8 = _68;
_68 = _78;
_78 = _a8;
}
};
_a8 = min((_68 / _88), (_78 / _98));
global._86 = min(global._86, _a8);
global._96 = min(global._96, _a8);
}
};
}
};
_b8();
};
}
function _85(_u6, _v6) {
{
_s3(_u6, _v6);
};
}
function _95(_u6, _v6) {
{
var _c8, _d8, _e8, _f8;
if (_w6._x6() > 0.5) {
{
_c8 = _w6._A6[0];
_d8 = _w6._y6[0];
_e8 = _w6._g8[0];
_f8 = _w6._h8[0];
}
} else {
{
_c8 = _w6._B6;
_d8 = _w6._z6;
_e8 = 0;
_f8 = 0;
}
};
if ((_w6._Q6() == 2)) {
{
_97(_u6, 16, 0, (_w6._B6 / 2), ((_w6._z6 / 2) - 48));
}
};
};
}
function _i8(_j8) {
this._k8 = 0;
this._l8 = !1;
this._m8 = null;
this._n8 = null;
this._o8 = null;
this._p8 = null;
this._q8 = null;
this._r8 = null;
this._s8 = [];
this._t8(_j8._r8)
};
_i8.prototype._u8 = function() {
var _v8 = new _i8({
_r8: this._r8
});
return _v8
};
_i8.prototype._t8 = function(_w8) {
this._r8 = _w8;
this._m8 = new _x8._y8(_w8);
this._q8 = new _x8._z8(this._m8.data);
this._p8 = new _x8._A8(this._q8);
if (_w8._B8.length > 0) {
this._C8(null)
}
this._D8(null);
this._n8 = new _x8._E8()
};
_i8.prototype._F8 = function() {
var _G8 = _H8 ? _H8._I8() : 30;
return~~ ((_G8 * this._o8.duration) + 0.5);
};
_i8.prototype._C8 = function(_J8) {
this._K8(_J8, 0)
};
_i8.prototype._K8 = function(_J8, _L8) {
var _M8 = null;
if (((_J8 === null) || (_J8 === undefined)) && (_L8 === 0)) {
if (this._r8._B8.length > 0) {
_M8 = this._r8._N8(this._r8._B8[0].name)
}
} else {
_M8 = this._r8._N8(_J8)
}
if (_M8 !== null && _M8 !== undefined) {
if (_L8 === 0) {
this._k8 = 0;
this._o8 = _M8
}
this._p8._O8(_L8, _M8, !0)
}
};
_i8.prototype._D8 = function(_P8) {
if (_P8 === null || _P8 === undefined) {
this._m8._Q8(this._r8._R8.name)
} else {
this._m8._Q8(_P8)
}
this._m8._S8()
};
_i8.prototype._T8 = function(_U8, _V8, _W8, _X8, _Y8, _Z8, __8) {
var _09 = this._m8;
_19 = this._m8._29(),
_39 = this._k8,
_49 = (__8 !== undefined);
if ((_39 != _U8) || (_09._f3 != _V8) || (_09._g3 != _W8) || (_19._E3 != _X8) || (_19._F3 != _Y8) || (_19._i5 != _Z8)) {
var _59 = this._F8();
if (_59 > 0) {
var _69 = _U8 % _59,
_79 = this._k8 % _59,
duration = this._o8.duration,
_89 = this._o8._99.length;
if (_79 > _69) {
_69 += _59
}
var _a9 = (_69 - _79) / _59;
if (_a9 < (duration / _89)) {
this._p8._b9(_a9 * duration);
this._p8.apply(this._m8)
} else {
var _c9 = (_69 / _59) * duration;
var _d9 = _c9 - (duration / _89);
this._o8.apply(this._m8, _d9, _c9, 1, null, null)
}
}
this._k8 = _U8;
_09._f3 = _V8;
_09._g3 = _W8;
_09._e9 = (_X8 < 0) ? 1 : 0;
_09._f9 = (_Y8 < 0) ? 1 : 0;
_19._E3 = Math.abs(_X8);
_19._F3 = Math.abs(_Y8);
_19._i5 = _Z8;
_49 = !0
}
if (_49) {
if (__8) {
__8._g9(_h9, 0, __8, null)
}
_09._49();
this._n8._b9(this._m8, 1)
}
};
_i8.prototype._i9 = function(_j9, _V8, _W8, _X8, _Y8, _Z8) {
var _59 = this._F8();
var _k9 = ~~ (_59 * (_j9 / this._o8.duration) + 0.5);
this._T8(_k9, _V8, _W8, _X8, _Y8, _Z8)
};
_i8.prototype._l9 = function(_m9, _U8, _V8, _W8, _X8, _Y8, _Z8) {
var _n9 = this._n8;
if (_n9._o9.length > 0) {
this._T8(_U8, _V8, _W8, _X8, _Y8, _Z8);
_m9.left = ~~ (_n9._p9 + 0.5);
_m9._q9 = ~~ (_n9._r9 + 0.5);
_m9.top = ~~ (_n9._s9 + 0.5);
_m9.bottom = ~~ (_n9._t9 + 0.5);
return ! 0
}
return ! 1
};
_i8.prototype._u9 = function(_U8, _V8, _W8, _X8, _Y8, _Z8, _v9, _w9, _x9, _y9, _z9, _A9, _B9) {
this._T8(_U8, _V8, _W8, _X8, _Y8, _Z8);
_v9._T8(_w9, _x9, _y9, _z9, _A9, _B9);
for (var _C9 = 0; _C9 < _v9._n8._D9.length; _C9++) {
var _E9 = _v9._n8._D9[_C9];
var _x3 = _E9.length / 2;
for (var _F9 = 0; _F9 < _x3; _F9++) {
var _G9, _H9, _I9, _J9;
_G9 = _E9[(_F9 * 2) + 0];
_H9 = _E9[(_F9 * 2) + 1];
if (_F9 === (_x3 - 1)) {
_I9 = _E9[0];
_J9 = _E9[1]
} else {
_I9 = _E9[((_F9 + 1) * 2) + 0];
_J9 = _E9[((_F9 + 1) * 2) + 1]
}
var _K9 = this._n8._L9(_G9, _H9, _I9, _J9);
if (_K9 !== null) {
return ! 0
}
}
}
return ! 1
};
_i8.prototype._M9 = function(_U8, _V8, _W8, _X8, _Y8, _Z8, _N9, _O9, _w9, _x9, _y9, _z9, _A9, _B9) {
this._T8(_U8, _V8, _W8, _X8, _Y8, _Z8);
if (_N9 == null) {
return ! 1
}
if (_N9._P9 <= 0) {
return ! 1
}
if (_N9._Q9.length > 0) {
_w9 = _w9 % _N9._Q9.length
}
if (_w9 < 0) {
_w9 = _w9 + _N9._Q9.length
}
_z9 = 1.0 / _z9;
_A9 = 1.0 / _A9;
var _n9 = this._n8;
var _R9 = _S9(_n9._p9, _O9.left);
var _T9 = _U9(_n9._r9, _O9._q9);
var _V9 = _S9(_n9._s9, _O9.top);
var _W9 = _U9(_n9._t9, _O9.bottom);
var _X9 = Math.sin( - _B9 * (_Y9 / 180.0));
var _Z9 = Math.cos( - _B9 * (_Y9 / 180.0));
for (var _H3 = _R9; _H3 <= _T9; _H3++) {
for (var __9 = _V9; __9 <= _W9; __9++) {
var _0a = ((_Z9 * (_H3 - _x9) + _X9 * (__9 - _y9)) * _z9 + _N9._1a);
var _2a = ((_Z9 * (__9 - _y9) - _X9 * (_H3 - _x9)) * _A9 + _N9._3a);
if ((_0a < 0) || (_0a >= _N9._4a)) {
continue
}
if ((_2a < 0) || (_2a >= _N9._5a)) {
continue
}
if (_N9._6a) {
if (!_N9._Q9._7a[_w9]._7a[_0a + (_2a * _N9._4a)]) {
continue
}
}
var _K9 = _n9._8a(_H3, __9);
if (_K9 !== null) {
return ! 0
}
}
}
return ! 1
};
_i8.prototype._9a = function(_U8, _V8, _W8, _X8, _Y8, _Z8, _aa, _ba) {
this._T8(_U8, _V8, _W8, _X8, _Y8, _Z8);
var _K9 = this._n8._8a(_aa, _ba);
if (_K9 !== null) {
return ! 0
}
return ! 1
};
_i8.prototype._ca = function(_U8, _V8, _W8, _X8, _Y8, _Z8, _aa, _ba, _x9, _y9) {
this._T8(_U8, _V8, _W8, _X8, _Y8, _Z8);
var _K9 = this._n8._L9(_aa, _ba, _x9, _y9);
if (_K9 !== null) {
return ! 0
}
return ! 1
};
_i8.prototype._da = function(_U8, _V8, _W8, _X8, _Y8, _Z8, _aa, _ba, _x9, _y9) {
this._T8(_U8, _V8, _W8, _X8, _Y8, _Z8);
var _K9 = null;
var _n9 = this._n8;
var _K9 = _n9._L9(_aa, _ba, _x9, _y9);
if (_K9 !== null) {
return ! 0
}
_K9 = _n9._L9(_aa, _ba, _x9, _ba);
if (_K9 !== null) {
return ! 0
}
_K9 = _n9._L9(_x9, _ba, _x9, _y9);
if (_K9 !== null) {
return ! 0
}
_K9 = _n9._L9(_x9, _y9, _aa, _y9);
if (_K9 !== null) {
return ! 0
}
_K9 = _n9._L9(_aa, _y9, _aa, _ba);
if (_K9 !== null) {
return ! 0
}
return ! 1
};
_i8.prototype._ea = function(_U8, _V8, _W8, _X8, _Y8, _Z8, _fa) {
this._T8(_U8, _V8, _W8, _X8, _Y8, _Z8);
var _n9 = this._n8;
var _09 = this._m8;
var _R9 = _S9(_n9._p9, _fa.left);
var _T9 = _U9(_n9._r9, _fa._q9);
var _V9 = _S9(_n9._s9, _fa.top);
var _W9 = _U9(_n9._t9, _fa.bottom);
var _ga = ((_fa._q9 + _fa.left) / 2);
var _ha = ((_fa.bottom + _fa.top) / 2);
var _ia = ((_fa._q9 - _fa.left) / 2);
var _ja = ((_fa.bottom - _fa.top) / 2);
var _4a = (_n9._r9 - _n9._p9);
var _5a = (_n9._t9 - _n9._s9);
var _1a = _09._f3 - _n9._p9;
var _3a = _09._g3 - _n9._s9;
if ((_X8 == 1) && (_Y8 == 1) && (Math.abs(_Z8) < 0.0001)) {
for (var _H3 = _R9; _H3 <= _T9; _H3++) {
for (var __9 = _V9; __9 <= _W9; __9++) {
if (_ka((_H3 - _ga) / _ia) + _ka((__9 - _ha) / _ja) > 1) continue;
var _0a = _H3 - _V8 + _1a;
var _2a = __9 - _W8 + _3a;
if ((_0a < 0) || (_0a >= _4a)) continue;
if ((_2a < 0) || (_2a >= _5a)) continue;
var _K9 = _n9._8a(_H3, __9);
if (_K9 !== null) {
return ! 0
}
}
}
} else {
var _la = Math.sin( - _Z8 * _Y9 / 180.0);
var _ma = Math.cos( - _Z8 * _Y9 / 180.0);
for (var _H3 = _R9; _H3 <= _T9; _H3++) {
for (var __9 = _V9; __9 <= _W9; __9++) {
if (_ka((_H3 - _ga) / _ia) + _ka((__9 - _ha) / _ja) > 1) continue;
var _0a = Math.floor((_ma * (_H3 - _V8) + _la * (__9 - _W8)) / _X8 + _1a);
var _2a = Math.floor((_ma * (__9 - _W8) - _la * (_H3 - _V8)) / _Y8 + _3a);
if ((_0a < 0) || (_0a >= _4a)) continue;
if ((_2a < 0) || (_2a >= _5a)) continue;
var _K9 = _n9._8a(_H3, __9);
if (_K9 !== null) {
return ! 0
}
}
}
}
return ! 1
};
var _na = null;;
function _oa() {
this._pa = [];
this._qa = null;
this._r8 = null;
this._ra = null;
if (_sa) {
this._ta = this._ua;
this._va = this._wa
} else {
this._ta = this._xa;
this._va = this._ya
}
};
_oa.prototype._za = function(_J8, _Aa, _Ba, _Ca) {
this._pa[_J8] = {
_Da: [],
_Ea: 0,
_Fa: 32,
_Ga: _Ha[_Ca],
_f3: 0,
_g3: 0,
_J3: _Aa,
_K3: _Ba
}
};
_oa.prototype._Ia = function(_Ja, _Ka, _Aa, _Ba) {
var width = _Aa;
var height = _Ba;
var _La = this;
var _Ma = function(_Na) {
var _Oa = _Na;
_Oa.width = width;
_Oa.height = height;
var _Pa = _Qa(_Ra + _Na.name);
_Oa._Sa = _Pa;
_Ha[_Pa].onload = function(e) {
_La._za(_Oa.name, e.srcElement.width, e.srcElement.height, _Pa)
};
_Ha[_Pa].onerror = function(e) {
debug("ImageError: " + e.srcElement.src)
};
_Ha[_Pa].URL = _Na.name
};
this._ra = new _x8._Ta(_Ka, {
load: _Ma
});
this._qa = new _x8._Ua(new _x8._Va(this._ra));
this._r8 = this._qa._Wa(JSON.parse(_Ja))
};
_oa.prototype._Xa = function(_Ya, _P8, _k9, _f3, _g3, _Za, __a, _0b, _1b, alpha) {
if (this._r8 === null || this._r8 === undefined) return;
_x8._2b._3b = !0;
var _4b = new _i8(this);
_4b._C8(_Ya);
_4b._D8(_P8);
_4b._T8(_k9, _f3, _g3, _Za, __a, _0b);
this._5b(_4b._m8, _1b, alpha)
};
_oa.prototype._6b = function(_k9, _f3, _g3, _Za, __a, _0b, _1b, alpha) {
if (!_na || !_na._7b()) {
this._Xa(null, null, _k9, _f3, _g3, _Za, __a, _0b, _1b, alpha)
} else {
_x8._2b._3b = !0;
var _8b = _na._7b();
_8b._T8(_k9, _f3, _g3, _Za, __a, _0b, _na);
this._5b(_8b._m8, _1b, alpha);
if (_8b._l8) {
this._9b(_8b._n8)
}
}
};
_oa.prototype._5b = function(_ab, _bb, alpha) {
var _cb = (_bb & 0xff) / 255.0,
_db = ((_bb & 0xff00) >> 8) / 255.0,
_eb = ((_bb & 0xff0000) >> 16) / 255.0;
for (var _H3 = 0,
_C9 = _ab._fb.length; _H3 < _C9; _H3++) {
var _gb = _ab._hb[_H3];
if (!_gb._ib) {
continue
}
var _T9 = (_gb._09._T9 * _gb._T9 * _cb * 255);
var _jb = (_gb._09._jb * _gb._jb * _db * 255);
var _W9 = (_gb._09._W9 * _gb._W9 * _eb * 255);
var _kb = (_gb._09._kb * _gb._kb * alpha * 255);
var _1b = (_kb << 24) | (_T9 << 0) | (_jb << 8) | (_W9 << 16);
switch (_gb._ib.type) {
case _x8._lb._mb:
this._ta(_gb, _1b, alpha);
break;
case _x8._lb._nb:
case _x8._lb._ob:
this._va(_gb, _1b, alpha);
break
}
}
};
_oa.prototype._9b = function(_pb) {
_qb(_pb._p9, _pb._s9, _pb._p9, _pb._t9);
_qb(_pb._p9, _pb._t9, _pb._r9, _pb._t9);
_qb(_pb._r9, _pb._t9, _pb._r9, _pb._s9);
_qb(_pb._r9, _pb._s9, _pb._p9, _pb._s9);
for (var _C9 = 0; _C9 < _pb._D9.length; _C9++) {
var _E9 = _pb._D9[_C9];
var _x3 = _E9.length / 2;
for (var _F9 = 0; _F9 < _x3; _F9++) {
var _G9, _H9, _I9, _J9;
_G9 = _E9[(_F9 * 2) + 0];
_H9 = _E9[(_F9 * 2) + 1];
if (_F9 == (_x3 - 1)) {
_I9 = _E9[0];
_J9 = _E9[1]
} else {
_I9 = _E9[((_F9 + 1) * 2) + 0];
_J9 = _E9[((_F9 + 1) * 2) + 1]
}
_qb(_G9, _H9, _I9, _J9)
}
}
};
_oa.prototype._xa = function(_gb, _1b, alpha) {
var _mb = _gb._ib,
_rb = [];
_mb._sb(_gb._09._f3, _gb._09._g3, _gb._tb, _rb);
var _ub = [];
_ub[0] = {};
_ub[0]._f3 = _rb[2];
_ub[0]._g3 = _rb[3];
_ub[0]._vb = _mb._wb[2];
_ub[0]._xb = _mb._wb[3];
_ub[1] = {};
_ub[1]._f3 = _rb[4];
_ub[1]._g3 = _rb[5];
_ub[1]._vb = _mb._wb[4];
_ub[1]._xb = _mb._wb[5];
_ub[2] = {};
_ub[2]._f3 = _rb[6];
_ub[2]._g3 = _rb[7];
_ub[2]._vb = _mb._wb[6];
_ub[2]._xb = _mb._wb[7];
_ub[3] = {};
_ub[3]._f3 = _rb[0];
_ub[3]._g3 = _rb[1];
_ub[3]._vb = _mb._wb[0];
_ub[3]._xb = _mb._wb[1];
_yb.globalAlpha = alpha;
var _Oa = _mb._Sa._zb;
var _Pa = _Ha[_Oa._Sa];
if (_1b != _Ab) {
if (!this._pa[_mb._Sa._zb.name]) {
var _zb = _mb._Sa._zb;
this._za(_zb.name, _zb.width, _zb.height, _mb._Sa._zb._Sa)
}
_Pa = _Bb(this._pa[_mb._Sa._zb.name], _1b)
}
var _Cb = this._pa[_Oa.name];
this._Db(_yb, _Pa, _ub[0]._f3, _ub[0]._g3, _ub[1]._f3, _ub[1]._g3, _ub[2]._f3, _ub[2]._g3, _ub[0]._vb * _Cb._J3, _ub[0]._xb * _Cb._K3, _ub[1]._vb * _Cb._J3, _ub[1]._xb * _Cb._K3, _ub[2]._vb * _Cb._J3, _ub[2]._xb * _Cb._K3);
this._Db(_yb, _Pa, _ub[2]._f3, _ub[2]._g3, _ub[3]._f3, _ub[3]._g3, _ub[0]._f3, _ub[0]._g3, _ub[2]._vb * _Cb._J3, _ub[2]._xb * _Cb._K3, _ub[3]._vb * _Cb._J3, _ub[3]._xb * _Cb._K3, _ub[0]._vb * _Cb._J3, _ub[0]._xb * _Cb._K3)
};
_oa.prototype._ya = function(_gb, _1b, alpha) {
var _nb = _gb._ib,
_rb = [];
_nb._Eb(_gb._09._f3, _gb._09._g3, _gb, _rb);
var _Oa = _nb._Sa._zb;
var _Pa = _Ha[_Oa._Sa];
if (_1b != _Ab) {
if (!this._pa[_nb._Sa._zb.name]) {
var _zb = _nb._Sa._zb;
this._za(_zb.name, _zb.width, _zb.height, _nb._Sa._zb._Sa)
}
_Pa = _Bb(this._pa[_nb._Sa._zb.name], _1b)
}
for (var _C9 = 0; _C9 < _nb._Fb.length / 3; _C9++) {
var _Gb = _nb._Fb[(_C9 * 3) + 0],
_Hb = _nb._Fb[(_C9 * 3) + 1],
_Ib = _nb._Fb[(_C9 * 3) + 2];
var _ub = [];
_ub[0] = {};
_ub[0]._f3 = _rb[(_Gb * 2) + 0];
_ub[0]._g3 = _rb[(_Gb * 2) + 1];
_ub[0]._vb = _nb._wb[(_Gb * 2) + 0];
_ub[0]._xb = _nb._wb[(_Gb * 2) + 1];
_ub[1] = {};
_ub[1]._f3 = _rb[(_Hb * 2) + 0];
_ub[1]._g3 = _rb[(_Hb * 2) + 1];
_ub[1]._vb = _nb._wb[(_Hb * 2) + 0];
_ub[1]._xb = _nb._wb[(_Hb * 2) + 1];
_ub[2] = {};
_ub[2]._f3 = _rb[(_Ib * 2) + 0];
_ub[2]._g3 = _rb[(_Ib * 2) + 1];
_ub[2]._vb = _nb._wb[(_Ib * 2) + 0];
_ub[2]._xb = _nb._wb[(_Ib * 2) + 1];
var _Cb = this._pa[_Oa.name];
this._Db(_yb, _Pa, _ub[0]._f3, _ub[0]._g3, _ub[1]._f3, _ub[1]._g3, _ub[2]._f3, _ub[2]._g3, _ub[0]._vb * _Cb._J3, _ub[0]._xb * _Cb._K3, _ub[1]._vb * _Cb._J3, _ub[1]._xb * _Cb._K3, _ub[2]._vb * _Cb._J3, _ub[2]._xb * _Cb._K3)
}
};
_oa.prototype._Db = function(_Jb, _Kb, _Lb, _Mb, _G9, _H9, _I9, _J9, _Nb, _Ob, _Pb, _Qb, _Rb, _Sb) {
_Jb.save();
_Jb.beginPath();
_Jb.moveTo(_Lb, _Mb);
_Jb.lineTo(_G9, _H9);
_Jb.lineTo(_I9, _J9);
_Jb.closePath();
_Jb.clip();
var _Tb = _Nb * (_Sb - _Qb) - _Pb * _Sb + _Rb * _Qb + (_Pb - _Rb) * _Ob;
if (_Tb == 0) {
return
}
var _Ub = -(_Ob * (_I9 - _G9) - _Qb * _I9 + _Sb * _G9 + (_Qb - _Sb) * _Lb) / _Tb;
var _Vb = (_Qb * _J9 + _Ob * (_H9 - _J9) - _Sb * _H9 + (_Sb - _Qb) * _Mb) / _Tb;
var _Wb = (_Nb * (_I9 - _G9) - _Pb * _I9 + _Rb * _G9 + (_Pb - _Rb) * _Lb) / _Tb;
var _Xb = -(_Pb * _J9 + _Nb * (_H9 - _J9) - _Rb * _H9 + (_Rb - _Pb) * _Mb) / _Tb;
var _Yb = (_Nb * (_Sb * _G9 - _Qb * _I9) + _Ob * (_Pb * _I9 - _Rb * _G9) + (_Rb * _Qb - _Pb * _Sb) * _Lb) / _Tb;
var _Zb = (_Nb * (_Sb * _H9 - _Qb * _J9) + _Ob * (_Pb * _J9 - _Rb * _H9) + (_Rb * _Qb - _Pb * _Sb) * _Mb) / _Tb;
_Jb.transform(_Ub, _Vb, _Wb, _Xb, _Yb, _Zb);
_Jb.drawImage(_Kb, 0, 0);
_Jb.restore()
};
_oa.prototype._ua = function(_gb, _1b, alpha) {
var _mb = _gb._ib,
_rb = [];
_mb._sb(_gb._09._f3, _gb._09._g3, _gb._tb, _rb);
var _Pa = _Ha[_mb._Sa._zb._Sa];
if (!_Pa.complete) return;
if (!_Pa.__b) _0c({
_Ga: _Pa
});
var _1c = 6;
var _2c = _sa._3c(_4c._5c, _Pa.__b, _sa._6c, _1c);
var _7c = _2c._8c() >> 2;
var index = _7c * _2c._9c;
_2c._9c += _1c;
var _ac = _2c._bc;
var _cc = _2c._dc;
var _ec = _2c._fc;
var _gc = index;
var _hc = _gc + _7c;
var _ic = _hc + _7c;
var _jc = _ic + _7c;
var _kc = _jc + _7c;
var _lc = _kc + _7c;
_ac[_gc + 0] = _ac[_lc + 0] = _rb[2];
_ac[_gc + 1] = _ac[_lc + 1] = _rb[3];
_ac[_hc + 0] = _rb[4];
_ac[_hc + 1] = _rb[5];
_ac[_ic + 0] = _ac[_jc + 0] = _rb[6];
_ac[_ic + 1] = _ac[_jc + 1] = _rb[7];
_ac[_kc + 0] = _rb[0];
_ac[_kc + 1] = _rb[1];
_cc[_gc] = _cc[_hc] = _cc[_ic] = _cc[_jc] = _cc[_kc] = _cc[_lc] = _1b;
_ec[_gc + 0] = _ec[_lc + 0] = _mb._wb[2];
_ec[_gc + 1] = _ec[_lc + 1] = _mb._wb[3];
_ec[_hc + 0] = _mb._wb[4];
_ec[_hc + 1] = _mb._wb[5];
_ec[_ic + 0] = _ec[_jc + 0] = _mb._wb[6];
_ec[_ic + 1] = _ec[_jc + 1] = _mb._wb[7];
_ec[_kc + 0] = _mb._wb[0];
_ec[_kc + 1] = _mb._wb[1]
};
_oa.prototype._wa = function(_gb, _1b, alpha) {
var _nb = _gb._ib,
_rb = [];
_nb._Eb(_gb._09._f3, _gb._09._g3, _gb, _rb);
var _Pa = _Ha[_nb._Sa._zb._Sa];
if (!_Pa.complete) return;
if (!_Pa.__b) _0c({
_Ga: _Pa
});
var _1c = _nb._Fb.length;
var _2c = _sa._3c(_4c._5c, _Pa.__b, _sa._6c, _1c);
var _7c = _2c._8c() >> 2;
var index = _7c * _2c._9c;
_2c._9c += _1c;
var _ac = _2c._bc;
var _cc = _2c._dc;
var _ec = _2c._fc;
var _gc = index;
for (var _C9 = 0; _C9 < _1c; _C9++, _gc += _7c) {
var _Gb = _nb._Fb[_C9];
_ac[_gc + 0] = _rb[(_Gb * 2) + 0];
_ac[_gc + 1] = _rb[(_Gb * 2) + 1];
_cc[_gc + 0] = _cc[_gc + 1] = _1b;
_ec[_gc + 0] = _nb._wb[(_Gb * 2) + 0];
_ec[_gc + 1] = _nb._wb[(_Gb * 2) + 1];
}
};
function _mc(_b3) {
_nc("draw_primitive_begin()")
}
function _oc(_b3, _pc) {
_nc("draw_primitive_begin_texture()")
}
function _qc(_f3, _g3) {
_nc("draw_vertex()")
}
function _rc(_f3, _g3, _1b, alpha) {
_nc("draw_vertex_color()")
}
var _sc = _rc;
function _tc(_f3, _g3, _uc, _vc) {
_nc("draw_vertex_texture()")
}
function _wc(_f3, _g3, _uc, _vc, _1b, alpha) {
_nc("draw_vertex_texture_color()")
}
var _xc = _wc;
function _yc() {
_nc("draw_primitive_end()")
}
function _zc(_b3) {
_nc("d3d_primitive_begin()")
}
function _Ac(_b3, _pc) {
_nc("d3d_primitive_begin_texture()")
}
function _Bc(_f3, _g3, _Cc) {
_nc("d3d_vertex()")
}
function _Dc(_f3, _g3, _Cc, _1b, alpha) {
_nc("d3d_vertex_color()")
}
var _Ec = _Dc;
function _Fc(_f3, _g3, _Cc, _uc, _vc) {
_nc("d3d_vertex_texture()")
}
function _Gc(_f3, _g3, _Cc, _uc, _vc, _1b, alpha) {
_nc("d3d_vertex_texture_color()");
}
var _Hc = _Gc;
function _Ic(_f3, _g3, _Cc, _Jc, _Kc, _Lc) {
_nc("d3d_vertex_normal()")
}
function _Mc(_f3, _g3, _Cc, _Jc, _Kc, _Lc, _1b, alpha) {
_nc("d3d_vertex_normal_color()")
}
var _Nc = _Mc;
function _Oc(_f3, _g3, _Cc, _Jc, _Kc, _Lc, _uc, _vc) {
_nc("d3d_vertex_normal_texture()")
}
function _Pc(_f3, _g3, _Cc, _Jc, _Kc, _Lc, _uc, _vc, _1b, alpha) {
_nc("d3d_vertex_normal_texture_color()")
}
var _Qc = _Pc;
function _Rc() {
_nc("d3d_primitive_end()")
}
var _Sc = null;
var _Tc = 0,
_Uc = -1,
_Vc = null,
_Wc = null;
var _Xc = 1,
_Yc = 2,
_Zc = 3,
__c = 4,
_0d = 5,
_1d = 6,
_2d = 7;
function _3d() {
_mc = _4d;
_oc = _5d;
_qc = _6d;
_rc = _7d;
_sc = _7d;
_tc = _8d;
_wc = _9d;
_xc = _9d;
_yc = _ad;
_zc = _bd;
_Ac = _cd;
_Bc = _dd;
_Dc = _ed;
_Ec = _ed;
_Fc = _fd;
_Gc = _gd;
_Hc = _gd;
_Ic = _hd;
_Mc = _id;
_Nc = _id;
_Oc = _jd;
_Pc = _kd;
_Qc = _kd;
_Rc = _ld
}
function _md(_nd) {
switch (_nd) {
case _Xc:
return _4c._od;
case _Yc:
return _4c._pd;
case _Zc:
return _4c._qd;
case __c:
return _4c._5c;
case _0d:
return _4c._rd;
case _1d:
return _4c._sd;
case _2d:
return _4c._5c
}
return - 1
}
function _td() {
_Tc = 0;
_Uc = -1;
_Vc = null;
_Wc = null
}
function _4d(_ud) {
_5d(_ud, -1)
}
function _5d(_ud, _Ca) {
_Tc = _ud;
_Uc = null;
if (typeof(_Ca) == "object") {
_Uc = _Ca._vd
} else if ((_Ca != -1) && _Ha[_Ca]) {
_Uc = _Ha[_Ca]
}
if (_Uc && !_Uc.__b) {
_0c({
_Ga: _Uc
})
}
_Wc = new _wd(_xd, _sa._yd(_sa._6c), !1)
}
function _6d(_V8, _W8) {
var _7c = _Wc._8c() >> 2;
var index = _Wc._9c * _7c;
_Wc._zd(1);
_Wc._bc[index + 0] = _V8;
_Wc._bc[index + 1] = _W8;
_Wc._fc[index + 0] = 0;
_Wc._fc[index + 1] = 0;
_Wc._dc[index] = ((_Ad * 255.0) << 24) | (_Bd & 0x00ffffff)
}
function _7d(_V8, _W8, _Cd) {
var _7c = _Wc._8c() >> 2;
var index = _Wc._9c * _7c;
_Wc._zd(1);
_Wc._bc[index + 0] = _V8;
_Wc._bc[index + 1] = _W8;
_Wc._fc[index + 0] = 0;
_Wc._fc[index + 1] = 0;
_Wc._dc[index] = _Dd(_Cd)
}
function _8d(_V8, _W8, _Ed, _Fd) {
var _7c = _Wc._8c() >> 2;
var index = _Wc._9c * _7c;
_Wc._zd(1);
_Wc._bc[index + 0] = _V8;
_Wc._bc[index + 1] = _W8;
_Wc._fc[index + 0] = _Ed;
_Wc._fc[index + 1] = _Fd;
_Wc._dc[index] = ((_Ad * 255.0) << 24) | (_Bd & 0x00ffffff)
}
function _9d(_V8, _W8, _Ed, _Fd, _Cd, _Gd) {
var _7c = _Wc._8c() >> 2;
var index = _Wc._9c * _7c;
_Wc._zd(1);
_Wc._bc[index + 0] = _V8;
_Wc._bc[index + 1] = _W8;
_Wc._fc[index + 0] = _Ed;
_Wc._fc[index + 1] = _Fd;
_Wc._dc[index] = ((_Gd * 255.0) << 24) | _Dd(_Cd)
}
function _ad() {
var _Hd = _md(_Tc);
if (_Hd == -1) {
return
}
var _Id = _Wc._Jd.subarray(0, _Wc._9c * _Wc._8c());
var _Kd = _Uc ? _Uc.__b: null;
var _2c = _sa._3c(_Hd, _Kd, _sa._6c, _Wc._9c);
_2c._Jd.set(_Id, _2c._9c * _2c._8c());
_2c._9c += _Wc._9c
}
function _bd(_b3) {
_Ac(_b3, -1)
}
function _cd(_ud, _Ca) {
_Tc = _ud;
_Uc = null;
if (_Ca == null || _Ca == undefined) {
_Vc = null
} else if (typeof(_Ca) == "object") {
_Uc = _Ca._vd;
_Vc = _Ca._Ld
} else if ((_Ca != -1) && _Ha[_Ca]) {
_Uc = _Ha[_Ca]
}
if (_Uc && !_Uc.__b) {
_0c({
_Ga: _Uc
})
}
_Wc = new _wd(_xd, _sa._yd(_sa._Md), !1)
}
function _Nd(_Ed, _Fd) {
if (_Vc) {
return ({
_vb: (_Vc._f3 + (_Ed * _Vc._u5)) / _Uc._Od,
_xb: (_Vc._g3 + (_Fd * _Vc._v5)) / _Uc._Pd
})
} else {
return ({
_vb: _Ed,
_xb: _Fd
})
}
};
function _dd(_V8, _W8, _Qd) {
var _7c = _Wc._8c() >> 2;
var index = _Wc._9c * _7c;
_Wc._zd(1);
_Wc._bc[index + 0] = _V8;
_Wc._bc[index + 1] = _W8;
_Wc._bc[index + 2] = _Qd;
_Wc._Rd[index + 0] = 0;
_Wc._Rd[index + 1] = 0;
_Wc._Rd[index + 2] = 0;
_Wc._fc[index + 0] = 0;
_Wc._fc[index + 1] = 0;
_Wc._dc[index] = ((_Ad * 255.0) << 24) | (_Bd & 0x00ffffff)
}
function _ed(_V8, _W8, _Qd, _Sd, _Gd) {
var _7c = _Wc._8c() >> 2;
var index = _Wc._9c * _7c;
_Wc._zd(1);
_Wc._bc[index + 0] = _V8;
_Wc._bc[index + 1] = _W8;
_Wc._bc[index + 2] = _Qd;
_Wc._Rd[index + 0] = 0;
_Wc._Rd[index + 1] = 0;
_Wc._Rd[index + 2] = 0;
_Wc._fc[index + 0] = 0;
_Wc._fc[index + 1] = 0;
_Wc._dc[index] = ((_Gd * 255.0) << 24) | _Dd(_Sd)
}
function _fd(_V8, _W8, _Qd, _Td, _Ud) {
var _7c = _Wc._8c() >> 2;
var index = _Wc._9c * _7c;
_Wc._zd(1);
_Wc._bc[index + 0] = _V8;
_Wc._bc[index + 1] = _W8;
_Wc._bc[index + 2] = _Qd;
_Wc._Rd[index + 0] = 0;
_Wc._Rd[index + 1] = 0;
_Wc._Rd[index + 2] = 0;
var _Vd = _Nd(_Td, _Ud);
_Wc._fc[index + 0] = _Vd._vb;
_Wc._fc[index + 1] = _Vd._xb;
_Wc._dc[index] = ((_Ad * 255.0) << 24) | (_Bd & 0x00ffffff)
}
function _gd(_V8, _W8, _Qd, _Td, _Ud, _Sd, _Gd) {
var _7c = _Wc._8c() >> 2;
var index = _Wc._9c * _7c;
_Wc._zd(1);
_Wc._bc[index + 0] = _V8;
_Wc._bc[index + 1] = _W8;
_Wc._bc[index + 2] = _Qd;
_Wc._Rd[index + 0] = 0;
_Wc._Rd[index + 1] = 0;
_Wc._Rd[index + 2] = 0;
var _Vd = _Nd(_Td, _Ud);
_Wc._fc[index + 0] = _Vd._vb;
_Wc._fc[index + 1] = _Vd._xb;
_Wc._dc[index] = ((_Gd * 255.0) << 24) | _Dd(_Sd)
}
function _hd(_V8, _W8, _Qd, _Wd, _Xd, _Yd) {
var _7c = _Wc._8c() >> 2;
var index = _Wc._9c * _7c;
_Wc._zd(1);
_Wc._bc[index + 0] = _V8;
_Wc._bc[index + 1] = _W8;
_Wc._bc[index + 2] = _Qd;
_Wc._Rd[index + 0] = _Wd;
_Wc._Rd[index + 1] = _Xd;
_Wc._Rd[index + 2] = _Yd;
_Wc._fc[index + 0] = 0;
_Wc._fc[index + 1] = 0;
_Wc._dc[index] = ((_Ad * 255.0) << 24) | (_Bd & 0x00ffffff)
}
function _id(_V8, _W8, _Qd, _Wd, _Xd, _Yd, _Sd, _Gd) {
var _7c = _Wc._8c() >> 2;
var index = _Wc._9c * _7c;
_Wc._zd(1);
_Wc._bc[index + 0] = _V8;
_Wc._bc[index + 1] = _W8;
_Wc._bc[index + 2] = _Qd;
_Wc._Rd[index + 0] = _Wd;
_Wc._Rd[index + 1] = _Xd;
_Wc._Rd[index + 2] = _Yd;
_Wc._fc[index + 0] = 0;
_Wc._fc[index + 1] = 0;
_Wc._dc[index] = ((_Gd * 255.0) << 24) | _Dd(_Sd)
}
function _jd(_V8, _W8, _Qd, _Wd, _Xd, _Yd, _Td, _Ud) {
var _7c = _Wc._8c() >> 2;
var index = _Wc._9c * _7c;
_Wc._zd(1);
_Wc._bc[index + 0] = _V8;
_Wc._bc[index + 1] = _W8;
_Wc._bc[index + 2] = _Qd;
_Wc._Rd[index + 0] = _Wd;
_Wc._Rd[index + 1] = _Xd;
_Wc._Rd[index + 2] = _Yd;
var _Vd = _Nd(_Td, _Ud);
_Wc._fc[index + 0] = _Vd._vb;
_Wc._fc[index + 1] = _Vd._xb;
_Wc._dc[index] = ((_Ad * 255.0) << 24) | (_Bd & 0x00ffffff)
}
function _kd(_V8, _W8, _Qd, _Wd, _Xd, _Yd, _Td, _Ud, _Sd, _Gd) {
var _7c = _Wc._8c() >> 2;
var index = _Wc._9c * _7c;
_Wc._zd(1);
_Wc._bc[index + 0] = _V8;
_Wc._bc[index + 1] = _W8;
_Wc._bc[index + 2] = _Qd;
_Wc._Rd[index + 0] = _Wd;
_Wc._Rd[index + 1] = _Xd;
_Wc._Rd[index + 2] = _Yd;
var _Vd = _Nd(_Td, _Ud);
_Wc._fc[index + 0] = _Vd._vb;
_Wc._fc[index + 1] = _Vd._xb;
_Wc._dc[index] = ((_Gd * 255.0) << 24) | _Dd(_Sd)
}
function _ld() {
var _Hd = _md(_Tc);
if (_Hd == -1) {
return
}
var _Id = _Wc._Jd.subarray(0, _Wc._9c * _Wc._8c());
var _Kd = _Uc ? _Uc.__b: null;
var _2c = _sa._3c(_Hd, _Kd, _sa._Md, _Wc._9c);
_2c._Jd.set(_Id, _2c._9c * _2c._8c());
_2c._9c += _Wc._9c
}
function _Zd(__d) {
var _0e = null,
_1e = null,
_2e = null,
_3e = !1,
_4e = null,
_5e;
var _6e = 0,
_7e = 0,
_8e = 0,
_9e = 0; (function() {
_0e = new ArrayBuffer(__d);
_1e = new DataView(_0e)
})();
function _ae(_be, _ce) {
var _de = !1;
var _ee = _4e._fe;
for (var _H3 = 0; _H3 < _ee.length; _H3++) {
var _ge = _ee[_H3];
if (((_be == -1) || (_ge._he == _be)) && (_ge.type == _ce)) {
_de = !0;
if ((_ge._ie & _6e) === 0) {
var _je = (_9e + _ge._L3);
_6e |= _ge._ie;
if (_4e._ke === _6e) {
_6e = 0;
_7e++;
_9e += _4e._le;
if ((_9e + _4e._le) >= _0e.byteLength) {
this._me(_0e.byteLength * 2)
}
}
return _je
}
}
}
if (_de) {
debug("VERTEX BUILDER: element already written, must write the whole vertex first\n\n", !0);
return - 1
}
debug("VERTEX BUILDER: Vertex format does not contain selected type.\n\n", !0);
return - 1
};
this._me = function(__d) {
var _ne = new ArrayBuffer(__d);
var _oe = new Int8Array(_0e);
var _pe = new Int8Array(_ne);
_pe.set(_oe);
_0e = _ne;
_1e = new DataView(_0e)
};
this._qe = function(_re) {
_6e = 0;
_7e = 0;
_8e = 0;
_9e = 0;
_5e = _re;
_4e = _sa._yd(_re);
if (_4e._le > _0e.byteLength) {
this._me(_4e._le * 36)
}
};
this._se = function() {};
this._te = function(_f3, _g3) {
var _je = _ae(_4c._ue, _4c._ve);
if (_je >= 0) {
_1e.setFloat32(_je, _f3, !0);
_1e.setFloat32(_je + 4, _g3, !0)
}
};
this._we = function(_f3, _g3, _Cc) {
var _je = _ae(_4c._ue, _4c._xe);
if (_je >= 0) {
_1e.setFloat32(_je, _f3, !0);
_1e.setFloat32(_je + 4, _g3, !0);
_1e.setFloat32(_je + 8, _Cc, !0)
}
};
this._ye = function(_1b, _Gd) {
var _je = _ae(_4c._ze, _4c._Ae);
if (_je >= 0) {
var _Be = ((alpha * 255.0) << 24) | _Dd(_1b);
_1e.setUint32(_je, _Be, !0)
}
};
this._Ce = function(_De) {
var _je = _ae(_4c._ze, _4c._Ae);
if (_je >= 0) {
var _1b = ((_De & 0xff) << 24) | ((_De & 0xff00) << 8) | ((_De & 0xff0000) >> 8) | ((_De & 0xff000000) >> 24);
_1e.setUint32(_je, _1b, !0)
}
};
this._Ee = function(_Fe) {
var _je = _ae(_4c._ze, _4c._Ae);
if (_je >= 0) {
var _1b = (_Fe & 0xff000000) | ((_Fe & 0xff) << 16) | (_Fe & 0xff00) | ((_Fe & 0xff0000) >> 16);
_1e.setUint32(_je, _1b, !0)
}
};
this._Ge = function(_vb, _xb) {
var _je = _ae(_4c._He, _4c._ve);
if (_je >= 0) {
_1e.setFloat32(_je, _vb, !0);
_1e.setFloat32(_je + 4, _xb, !0)
}
};
this._Ie = function(_f3, _g3, _Cc) {
var _je = _ae(_4c._Je, _4c._xe);
if (_je >= 0) {
_1e.setFloat32(_je, _f3, !0);
_1e.setFloat32(_je + 4, _g3, !0);
_1e.setFloat32(_je + 8, _Cc, !0)
}
};
this._Ke = function(_f3) {
var _je = _ae( - 1, _4c._Le);
if (_je >= 0) {
_1e.setFloat32(_je, _f3, !0)
}
};
this._Me = function(_f3, _g3) {
var _je = _ae( - 1, _4c._ve);
if (_je >= 0) {
_1e.setFloat32(_je, _f3, !0);
_1e.setFloat32(_je + 4, _g3, !0)
}
};
this._Ne = function(_f3, _g3, _Cc) {
var _je = _ae( - 1, _4c._xe);
if (_je >= 0) {
_1e.setFloat32(_je, _f3, !0);
_1e.setFloat32(_je + 4, _g3, !0);
_1e.setFloat32(_je + 8, _Cc, !0)
}
};
this._Oe = function(_f3, _g3, _Cc, _J3) {
var _je = _ae( - 1, _4c._Pe);
if (_je >= 0) {
_1e.setFloat32(_je, _f3, !0);
_1e.setFloat32(_je + 4, _g3, !0);
_1e.setFloat32(_je + 8, _Cc, !0);
_1e.setFloat32(_je + 12, _J3, !0)
}
};
this._Qe = function(_f3, _g3, _Cc, _J3) {
var _je = _ae( - 1, _4c._Re);
if (_je >= 0) {
_1e.setUint8(_je, _f3, !0);
_1e.setUint8(_je + 1, _g3, !0);
_1e.setUint8(_je + 2, _Cc, !0);
_1e.setUint8(_je + 3, _J3, !0)
}
};
this._Se = function() {
var _Te = new _wd(_7e, _4e, !1);
var _Ue = _7e * _4e._le;
var _Ve = new Int8Array(_0e, 0, _Ue);
_Te._Jd.set(_Ve);
_Te._9c += _7e;
_Te._Se();
_2e = _Te;
_3e = !0;
_0e = null;
_1e = null
};
this._We = function(_Xe, _Ye) {
if (_3e) {
_sa._Ze(_Xe, _Ye._vd.__b, _2e, 0)
} else {
var _2c = _sa._3c(_Xe, _Ye._vd.__b, _5e, _7e);
var __e = _2c._9c * _4e._le;
var _Ve = new Int8Array(_0e, 0, _7e * _4e._le);
_2c._Jd.set(_Ve, __e);
_2c._9c += _7e
}
}
}
var _0f = null;
function _1f(_2f) {
var _3f = 0,
_4f = 0.5;
var _5f = _2f;
var _6f = [];
var _7f = [];
var _8f = [];
var _9f = _3f;
var _af = _4f;
Object.defineProperties(this, {
_bf: {
get: function() {
return _9f
},
set: function(_cf) {
_9f = _cf
}
},
_df: {
get: function() {
return _af
},
set: function(_cf) {
_af = _cf
}
}
});
this._ef = function() {
_7f = _6f.slice();
_8f = _5f.axes.slice();
var _ff = _5f.buttons;
if (_ff) {
for (var _W9 in _ff) {
if (!_ff.hasOwnProperty(_W9)) continue;
if (typeof(_ff[_W9]) === "object") {
_6f[_W9] = _ff[_W9].value
} else {
_6f[_W9] = _ff[_W9]
}
}
}
};
this._gf = function() {
if (_5f) {
return _5f.id || ""
}
return ""
};
this._hf = function() {
if (_6f) {
return _6f.length
}
return 0
};
this._if = function(_jf) {
var _kf = _6f[_jf];
var _lf = _7f[_jf];
if ((_kf !== undefined) && (_lf !== undefined)) {
return ((_kf >= _af) && (_lf < _af))
}
return ! 1
};
this._mf = function(_jf) {
var _kf = _6f[_jf];
var _lf = _7f[_jf];
if ((_kf !== undefined) && (_lf !== undefined)) {
return ((_kf < _af) && (_lf >= _af))
}
return ! 1
};
this._nf = function(_jf) {
var _kf;
if (typeof(_6f[_jf]) === "object") {
_kf = _6f[_jf].value
} else {
_kf = _6f[_jf]
}
if (_kf !== undefined) {
return (_kf >= _af)
}
return ! 1
};
this._of = function(_jf) {
var _kf;
if (typeof(_6f[_jf]) === "object") {
_kf = _6f[_jf].value
} else {
_kf = _6f[_jf];
}
return _kf || 0.0
};
this._pf = function() {
if (_8f) {
return _8f.length
}
return 0
};
this._qf = function(_rf, _sf) {
var _tf = _8f[_rf] || 0;
if (_9f > 0.0) {
var _uf = Math.abs(_tf);
if (_uf < _9f) {
_tf = 0.0
} else {
var _vf = (_tf >= 0) ? 1.0 : -1.0;
_tf = ((_uf - _9f) / (_sf - _9f)) * _vf
}
}
return _tf
}
}
function _wf() {
var _xf = 1.0,
_yf = 1.0;
var _zf = 0,
_Af = 1,
_Bf = 2;
var _Cf = 0x8000,
_Df = 0x8001,
_Ef = 0x8002,
_Ff = 0x8003,
_Gf = 0x8004,
_Hf = 0x8005,
_If = 0x8006,
_Jf = 0x8007,
_Kf = 0x8008,
_Lf = 0x8009,
_Mf = 0x800A,
_Nf = 0x800B,
_Of = 0x800C,
_Pf = 0x800D,
_Qf = 0x800E,
_Rf = 0x800F,
_Sf = 0x8010,
_Tf = 0x8011,
_Uf = 0x8012,
_Vf = 0x8013,
_Wf = 0x8014;
var _Xf = 0,
_Yf = 1,
_Zf = 2,
__f = 3,
_0g = 4,
_1g = 5,
_2g = 6,
_3g = 7,
_4g = 8,
_5g = 9,
_6g = 10,
_7g = 11,
_8g = 12,
_9g = 13,
_ag = 14,
_bg = 15;
var _cg = 0,
_dg = 1,
_eg = 2,
_fg = 3;
function _gg() {
return !! navigator["getGamepads"] || !!navigator["webkitGetGamepads"] || !!navigator["webkitGamepads"]
}
var _hg = _gg() ? _Af: _zf;
var _ig = [];
function _jg() {
if (navigator["getGamepads"]) {
return navigator["getGamepads"]()
}
if (navigator["webkitGetGamepads"]) {
return navigator["webkitGetGamepads"]()
}
if (navigator["webkitGamepads"]) {
return navigator["webkitGamepads"]();
}
return null
}
function _kg() {
var _H3 = 0;
for (_H3 = 0; _H3 < _ig.length; _H3++) {
_ig[_H3]._ef()
}
}
function _lg() {
var _mg = 0;
var gamepads = _jg();
if (gamepads !== null) {
for (_mg = 0; _mg < gamepads.length; ++_mg) {
var _ng = gamepads[_mg];
if (!_ng) {
if (_ig[_mg]) {
_ig[_mg].splice(_mg, 1)
}
} else {
if (!_ig[_mg]) {
_ig[_mg] = new _1f(_ng)
}
}
}
}
}
function _og(_jf) {
if (_jf < _Cf) {
return _jf
}
switch (_jf) {
case _Df:
return _Xf;
case _Ef:
return _Yf;
case _Ff:
return _Zf;
case _Gf:
return __f;
case _Hf:
return _0g;
case _If:
return _1g;
case _Jf:
return _2g;
case _Kf:
return _3g;
case _Lf:
return _4g;
case _Mf:
return _5g;
case _Nf:
return _6g;
case _Of:
return _7g;
case _Pf:
return _8g;
case _Qf:
return _9g;
case _Rf:
return _ag;
case _Sf:
return _bg
}
return 0
}
function _pg(_rf) {
if (_rf < _Cf) {
return _rf
}
switch (_rf) {
case _Tf:
return _cg;
case _Uf:
return _dg;
case _Vf:
return _eg;
case _Wf:
return _fg
}
return 0
}
function _wf() {}
this._qg = function() {
return _ig.length
};
this._rg = function(_sg) {
var _tg = _ig[_sg];
if (_tg) {
return _tg._gf()
}
return ""
};
this._ug = function() {
return (_hg !== _zf)
};
this._df = function(_sg) {
var _tg = _ig[_sg];
if (_tg) {
return _tg._df;
}
return 0.0
};
this._vg = function(_sg, _wg) {
var _tg = _ig[_sg];
if (_tg) {
if ((_wg >= 0.0) && (_wg <= _xf)) {
_tg._df = _wg
}
}
};
this._bf = function(_sg) {
var _tg = _ig[_sg];
if (_tg) {
return _tg._bf
}
return 0.0
};
this._xg = function(_sg, _yg) {
var _tg = _ig[_sg];
if (_tg) {
if ((_yg >= 0.0) && (_yg <= _yf)) {
_tg._bf = _yg
}
}
};
this._zg = function() {
_ig = []
};
this._Ag = function() {
switch (_hg) {
case _Af:
_lg();
_kg();
break;
case _Bf:
_kg();
break;
case _zf:
default:
return
}
};
this._Bg = function(_sg) {
if (_ig[_sg] !== null && _ig[_sg] !== undefined) {
return ! 0
}
return ! 1
};
this._hf = function(_sg) {
var _tg = _ig[_sg];
if (_tg) {
return _tg._hf()
}
return 0
};
this._pf = function(_sg) {
var _tg = _ig[_sg];
if (_tg) {
return _tg._pf()
}
return 0
};
this._nf = function(_sg, _jf) {
var _tg = _ig[_sg];
if (_tg) {
return _tg._nf(_og(_jf), _tg._df)
}
return ! 1
};
this._if = function(_sg, _jf) {
var _tg = _ig[_sg];
if (_tg) {
return _tg._if(_og(_jf), _tg._df)
}
return ! 1
};
this._mf = function(_sg, _jf) {
var _tg = _ig[_sg];
if (_tg) {
return _tg._mf(_og(_jf), _tg._df)
}
return ! 1
};
this._of = function(_sg, _jf) {
var _tg = _ig[_sg];
if (_tg) {
return _tg._of(_og(_jf))
}
return 0;
};
this._qf = function(_sg, _rf) {
var _tg = _ig[_sg];
if (_tg) {
return _tg._qf(_pg(_rf), _yf)
}
return 0
}
};
var _Cg = [];
var _Dg = "None";
var _Eg = 0;
var _Fg = 0;
function _Gg() {
this._f3 = 0;
this._g3 = 0;
this._nf = 0;
this._if = 0;
this._mf = 0;
this._Hg = 0
};
_Gg.prototype._zg = function() {
this._nf = 0;
this._if = 0;
this._mf = 0;
this._Hg = 0
};
_Gg.prototype._Ig = function(_V8, _W8) {
if (_H8) {
var _Jg;
if (!_H8._Kg) {
_Jg = _Lg
} else {
_Jg = _H8._Mg
}
for (_xb = 0; _xb < _Jg.length; _xb++) {
_Ng = _Jg[_xb];
if (_Ng._Q3) {
_Og(canvas, _Pg);
if (((_V8 - _Pg.left) >= _Ng._Qg) && ((_V8 - _Pg.left) < _Ng._Rg) && ((_W8 - _Pg.top) >= _Ng._Sg) && ((_W8 - _Pg.top) < _Ng._Tg)) {
this._f3 = _Ng._Ug(_V8);
this._g3 = _Ng._Vg(_W8);
return
}
}
}
}
this._f3 = _V8;
this._g3 = _W8
};
function log(_Wg) {
setTimeout(function() {
throw new _Xg(_Wg)
},
0)
}
function _Yg(_Zg) {
for (var _H3 = 0; _H3 < _Cg.length; _H3++) {
if (_Cg[_H3] === _Zg) {
return _H3
}
}
return - 1
}
function __g(_Zg) {
var _0h = -1;
for (var _H3 = 0; _H3 < _Cg.length; _H3++) {
if ((_Cg[_H3] === _Zg) || (_Cg[_H3] === -1)) {
_0h = _H3;
break
}
}
if (_0h == -1) {
_0h = _Cg.length
}
_Cg[_0h] = _Zg;
_1h[_0h] = new _Gg();
return _0h
}
var _2h = !1;
function _3h(event) {
if (!_2h && (_4h == _5h)) {
_6h();
_2h = !0
}
for (var _7h = 0; _7h < event.changedTouches.length; _7h++) {
var _8h = event.changedTouches[_7h];
var type = "";
var _0h = -1;
_Dg = event.type;
switch (event.type) {
case "touchstart":
_0h = __g(_8h["identifier"]);
break;
case "touchend":
_0h = _Yg(_8h["identifier"]);
_Cg[_0h] = -1;
break;
case "touchmove":
_0h = _Yg(_8h["identifier"]);
break;
default:
return
}
var _9h;
var _ah;
if (_bh) {
var _ch = {
_f3: 0,
_g3: 0
};
_bh(_8h, _ch);
_9h = _ch._f3;
_ah = _ch._g3
} else {
_9h = _8h.pageX;
_ah = _8h.pageY
}
if (_0h == 0) {
if (_dh != null) {
_eh = _9h;
_fh = _ah
}
switch (event.type) {
case "touchstart":
_gh = 1;
break;
case "touchmove":
_gh = 1;
break;
case "touchend":
_gh = 0;
break
}
}
_1h[_0h]._Ig(_9h, _ah);
_hh[_0h]._f3 = _9h;
_hh[_0h]._g3 = _ah;
switch (event.type) {
case "touchstart":
_1h[_0h]._nf = 1;
_hh[_0h]._ih = _jh | _kh | _lh;
break;
case "touchend":
_1h[_0h]._nf = 0;
_hh[_0h]._ih = 0;
break;
case "touchmove":
default:
break
}
event.preventDefault()
}
}
function _mh() {
canvas.ontouchstart = _3h;
canvas.ontouchmove = _3h;
canvas.ontouchend = _3h;
canvas.ontouchcancel = _3h
}
var _nh, _oh, _ph, _qh, _rh, _sh, _th;
function _uh(_vh, _wh) {
this._xh = [];
this._Od = _vh;
this._Pd = _wh;
var _V9 = _vh * _wh;
for (var _H3 = 0; _H3 < _V9; _H3++) {
this._xh[_H3] = 0
}
}
_uh.prototype._yh = function(_zh) {
this._Od = _zh._Od;
this._Pd = _zh._Pd;
this._xh = _zh._xh.slice()
};
var _Ah = _Bh;
function _Bh(_Ch, _V8, _W8, _Dh) {
var _Eh = _Fh._Gh(_Ch);
if (!_Eh) {
_Xg("Error: invalid ds_grid ID (ds_grid_set)");
return
}
if (_V8 < 0 || _V8 >= _Eh._Od || _W8 < 0 || _W8 >= _Eh._Pd) {
_Xg("Error: grid out of bounds(set) - GridID: " + _Ch + " size[" + _Eh._Od + "," + _Eh._Pd + "] at (" + _V8 + "," + _W8 + ")");
return
}
_Eh._xh[_V8 + (_W8 * _Eh._Od)] = _Dh
}
function _Hh(_Ch, _V8, _W8, _Dh) {
var _Eh = _Fh._Gh(_Ch);
if ((_V8 < 0) || (_V8 >= _Eh._Od) || (_W8 < 0) || (_W8 >= _Eh._Pd)) {
return
}
_Eh._xh[_V8 + (_W8 * _Eh._Od)] = _Dh
}
var _Ih = _Jh;
function _Jh(_Ch, _V8, _W8, _Dh) {
var _Eh = _Fh._Gh(_Ch);
if (!_Eh) {
_Xg("Error: invalid ds_grid ID (ds_grid_set)");
return _Dh
}
if (_V8 < 0 || _V8 >= _Eh._Od || _W8 < 0 || _W8 >= _Eh._Pd) {
_Xg("Error: grid out of bounds(set) - GridID: " + _Ch + " size[" + _Eh._Od + "," + _Eh._Pd + "] at (" + _V8 + "," + _W8 + ")");
return _Dh
}
_Eh._xh[_V8 + (_W8 * _Eh._Od)] = _Dh;
return _Dh
}
function _Kh(_Ch, _V8, _W8, _Dh) {
var _Eh = _Fh._Gh(_Ch);
if ((_V8 < 0) || (_V8 >= _Eh._Od) || (_W8 < 0) || (_W8 >= _Eh._Pd)) {
return _Dh
}
_Eh._xh[_V8 + (_W8 * _Eh._Od)] = _Dh;
return _Dh
}
var _Lh = _Mh;
function _Mh(_Ch, _V8, _W8, _Dh) {
var _Eh = _Fh._Gh(_Ch);
if (!_Eh) {
_Xg("Error: invalid ds_grid ID (ds_grid_set)");
return _Dh
}
if (_V8 < 0 || _V8 >= _Eh._Od || _W8 < 0 || _W8 >= _Eh._Pd) {
_Xg("Error: grid out of bounds(set) - GridID: " + _Ch + " size[" + _Eh._Od + "," + _Eh._Pd + "] at (" + _V8 + "," + _W8 + ")");
return _Dh
}
var _Nh = _Eh._xh[_V8 + (_W8 * _Eh._Od)];
_Eh._xh[_V8 + (_W8 * _Eh._Od)] = _Dh;
return _Nh
}
function _Oh(_Ch, _V8, _W8, _Dh) {
var _Eh = _Fh._Gh(_Ch);
if ((_V8 < 0) || (_V8 >= _Eh._Od) || (_W8 < 0) || (_W8 >= _Eh._Pd)) {
return _Dh
}
var _Nh = _Eh._xh[_V8 + (_W8 * _Eh._Od)];
_Eh._xh[_V8 + (_W8 * _Eh._Od)] = _Dh;
return _Nh
}
var _Ph = _Qh;
function _Qh(_Ch, _V8, _W8) {
var _Eh = _Fh._Gh(_Ch);
if (!_Eh) {
_Xg("Error: invalid ds_grid ID (ds_grid_get)");
return undefined
}
if (_V8 < 0 || _V8 >= _Eh._Od || _W8 < 0 || _W8 >= _Eh._Pd) {
_Xg("Error: grid out of bounds(get) - GridID: " + _Ch + " size[" + _Eh._Od + "," + _Eh._Pd + "] at (" + _V8 + "," + _W8 + ")");
return undefined
}
return _Eh._xh[_V8 + (_W8 * _Eh._Od)]
}
function _Rh(_Ch, _V8, _W8) {
var _Eh = _Fh._Gh(_Ch);
if ((_V8 < 0) || (_V8 >= _Eh._Od) || (_W8 < 0) || (_W8 >= _Eh._Pd)) {
return undefined
}
return _Eh._xh[_V8 + (_W8 * _Eh._Od)]
}
function _Sh() {
var _R9 = new _Th();
_R9._Uh = !0;
return _Vh._Wh(_R9)
}
function _Xh(_Ch) {
var _Yh = _Vh._Gh(_Ch);
if (_Yh) return _Yh.length;
_Xg("Error: invalid ds_list ID (ds_list_size)");
return 0
}
function _Zh() {
var __h = _Zh.arguments;
var _0i = _Zh.arguments.length;
var _Yh = _Vh._Gh(__h[0]);
if (!_Yh) {
_Xg("Error: invalid ds_list ID (ds_list_add)");
return
}
for (var _H3 = 1; _H3 < _0i; _H3++) {
_Yh._Wh(__h[_H3])
}
return
}
function _1i(_Ch, _2i) {
var _xb;
var _Yh = _Vh._Gh(_Ch);
if (_Yh) {
if (_2i >= 0 && _2i < _Yh._3i.length) {
_xb = _Yh._3i[_2i];
if (typeof(_xb) == "object") if (_xb instanceof Array) return _xb;
else return _xb.Object;
if (_xb != undefined) return _xb
}
_Xg("Error: invalid ds_list position (ds_list_find_value)");
return 0
}
_Xg("Error: invalid ds_list ID (ds_list_find_value)");
return - 1
}
var _4i = 1,
_5i = 2;
function _6i(_ce, _7i) {
this._8i = _ce;
this.Object = _7i;
}
function _9i() {
var _ai = {};
var id = _bi._Wh(_ai);
return id
}
function _ci(_Ch) {
_bi._di(_Ch)
}
function _ei(_Ch) {
var _ai = _bi._Gh(_Ch);
if (_ai) {
var _fi = {};
_bi._gi(_Ch, _fi)
}
}
function _hi(_Ch, _ii) {
var _ai = _bi._Gh(_Ch);
if (_ai) {
if (_ai[_ii] !== undefined) {
return ! 0
}
}
return ! 1
}
function _ji(_Ch, _ii, _Dh) {
var _ai = _bi._Gh(_Ch);
if (_ai) {
if (_ai[_ii] !== undefined) {
_Xg("Error: KEY(" + _ii + ") already present in ds_map[" + _Ch + "], you can not add a key twice.")
}
_ai[_ii] = _Dh
}
}
function _ki(_Ch, _ii) {
var _ai = _bi._Gh(_Ch);
if (_ai) {
if (_ai[_ii] !== undefined) {
if ((typeof(_ai[_ii]) === "string") || (typeof(_ai[_ii]) === "number") || (_ai[_ii] instanceof Array)) {
return _ai[_ii]
}
var _li = _ai[_ii];
return _li.Object
}
}
_Xg("Error: Key (" + _ii + ") not found in ds_map[" + _Ch + "]");
return 0
}
function _mi(_Ch, _ii) {
var _ni = !1;
var _ai = _bi._Gh(_Ch);
for (var _oi in _ai) {
if (_ai.hasOwnProperty(_oi)) {
if (_ni) {
return _oi
}
if (_oi == _ii) {
_ni = !0
}
}
}
return - 1
}
function _pi(_Ch) {
var _ai = _bi._Gh(_Ch);
for (var _oi in _ai) {
if (_ai.hasOwnProperty(_oi)) {
return _oi;
}
}
return - 1
}
var NaN = 0x7ff0000000000001;
function _qi(_ri, _si) {
var _vf = (_ri >> 31) * 2 + 1;
var _ti = (_ri >>> 20) & 0x7FF;
_ri &= 0xFFFFF;
if (_ti === 0x7FF) return (_ri + _si) ? NaN: _vf / 0;
_ti ? (_ti -= 1023, _ri |= 0x100000) : _ti = -1022;
var _ui = _si + (_ri * 4294967296.0);
return _vf * _ui * Math.pow(2, _ti - 52)
}
var _vi = 0;
var _wi = null;
function _xi() {
var _x3 = _wi.length;
var _Ea = 64 - 8;
var _si = 0;
var _ri = 0;
while (_vi < _x3) {
var _kb;
var _I3 = _wi[_vi++];
if (_I3 == ',' || _I3 == ':') {
_vi--;
break
}
if (_I3 >= 'A') {
_kb = ((_I3.charCodeAt() - 65) + 10) << 4
} else {
_kb = ((_I3.charCodeAt() - 48) << 4)
}
_I3 = _wi[_vi++];
if (_I3 >= 'A') {
_kb |= (~~ (_I3.charCodeAt() - 65)) + 10
} else {
_kb |= ~~ (_I3.charCodeAt() - 48)
}
if (_Ea > 32) {
_ri |= _kb << (_Ea - 32)
} else {
_si |= _kb << (_Ea - 32)
}
_Ea -= 8
}
return _qi(_ri, _si)
}
function _yi() {
var _x3 = _wi.length;
var _zi = "";
while (_vi < _x3) {
var _kb;
var _I3 = _wi[_vi++];
if (_I3 == ',' || _I3 == ':') {
_vi--;
break
}
if (_I3 >= 'A') {
_kb = ((_I3.charCodeAt() - 65) + 10) << 4
} else {
_kb = ((_I3.charCodeAt() - 48) << 4)
}
_I3 = _wi[_vi++];
if (_I3 >= 'A') {
_kb |= (_I3.charCodeAt() - 65) + 10
} else {
_kb |= (_I3.charCodeAt() - 48)
}
_zi += String.fromCharCode(_kb)
}
return _zi
}
var _Ai = !1;
function _Bi() {
var id = 0xF35065da3bb79cac7;
return id.toString()
}
function _Ci() {
var __h = _Ci.arguments;
var _0i = _Ci.arguments.length;
var _Di = _Ei._Gh(__h[0]);
if (!_Di) {
_Xg("Error: invalid ds_queue ID (ds_queue_enqueue)");
return
}
for (var _H3 = 1; _H3 < _0i; _H3++) {
_Di[_Di.length] = __h[_H3]
}
return
}
function _Fi(_Ch, _Dh) {
var __h = _Fi.arguments;
var _0i = _Fi.arguments.length;
var _Gi = _Hi._Gh(__h[0]);
if (!_Gi) {
_Xg("Error: invalid ds_stack ID (ds_stack_push)");
return
}
for (var _H3 = 1; _H3 < _0i; _H3++) {
_Gi.push(__h[_H3])
}
}
var _Ii = !1;
var _Ji = 'Trying to stop non-existing sound.',
_Ki = 'Trying to draw a non-existing sprite.',
_Li = 'Trying to draw a non-existing background.',
_Mi = 'Cannot compare arguments.',
_Ni = 'Trying to replace non-existing resource.',
_Oi = 'File does not exist.',
_Pi = 'The particle emitter must first be created.';
var _Qi = -1,
_Ri = [],
_Si = [];
function _48(_Ti, _Ui) {
if (_Ii) {
_Ti._E7(_Ti._H7 + _Ui)
} else {
_Ti._E7(_Ui)
}
}
function __7(_Ti, _Ui) {
if (_Ii) {
_Ti._F7(_Ti._G7 + _Ui)
} else {
_Ti._F7(_Ui)
}
}
function _z7(_Ti) {
_n7(_Ti)
}
function _08(_Ti, _Vi, _V8, _W8) {
var _Wi = _Xi(_Vi);
if (!0 != _Yi(_Wi)) {
debug("Creating existence for non-existent object: " + _Wi.toString());
return
}
var _Zi = null;
if (!0 == _Ii) {
_Zi = _H8.__i(_V8 + _Ti._f3, _W8 + _Ti._g3, _Wi)
} else {
_Zi = _H8.__i(_V8, _W8, _Wi)
}
_Zi._g9(_0j, 0, _Zi, _Zi);
_Zi._1j = !0
}
function _2j(_Sd) {
_Y6(_Sd)
}
var _3j = _2j;
function _W7(_Ti, _j9, _4j) {
var _47 = _Xi(_4j);
var _5j = _Xi(_j9);
if (!_Ii || (_Ti._6j(_47) < 0)) {
_Ti._7j(_47, _5j)
} else {
_Ti._7j(_47, _Ti._6j(_47) + _5j)
}
}
function _28() {
var _T9 = 0;
if (typeof(arguments[0]) != typeof(arguments[1])) {
if ((typeof(arguments[0] == "boolean") && (typeof(arguments[1]) == "number"))) {
_T9 = (arguments[0] == !0) ? (1 - arguments[1]) : (0 - arguments[1])
} else if ((typeof(arguments[1] == "boolean") && (typeof(arguments[0]) == "number"))) {
_T9 = (arguments[1] == !0) ? (arguments[0] - 1) : (arguments[0] - 0)
} else {
debug(_Mi);
return
}
} else {
if (typeof(arguments[0]) == "string") {
_T9 = (arguments[0] == arguments[1]) ? 0 : 1
} else {
_T9 = arguments[0] - arguments[1]
}
}
var _8j;
if (_Xi(arguments[2]) == 1) {
_8j = (_T9 < 0) ? 1 : 0
} else if (_Xi(arguments[2]) == 2) {
_8j = (_T9 > 0) ? 1 : 0
} else if (_Xi(arguments[2]) == 3) {
_8j = (_T9 <= 0) ? 1 : 0
} else if (_Xi(arguments[2]) == 4) {
_8j = (_T9 >= 0) ? 1 : 0
} else {
_8j = (_T9 == 0) ? 1 : 0
}
return _8j
}
function _9j(_Sd) {
_Y6(_Sd)
}
var _aj = _9j;
function _U7(_bj) {
_cj()
}
function _dj(_ce, _ej, _fj, _gj, _hj, _ij) {
var type = _Xi(_ce);
var _jj = _Xi(_ej);
var _kj = _Xi(_fj);
var _lj = _Xi(_gj);
if (_Qi < 0) {
_Qi = _mj();
}
if (_Ri[type] < 0) {
_Ri[type] = _nj()
}
var _oj = _Ri[type];
if (_jj == 0) {
_pj(_oj, _kj, _lj)
} else {
_qj(_oj, _kj, _lj)
}
_rj(_oj, _hj, _ij)
}
var _sj = _dj;
function _D7(_Ti, _tj, _Ui, _uj, _vj) {
_Ti._wj(_Xi(_tj), _Ui, 1, 0, (_vj >= 0.5) ? !0 : !1, _Xi(_uj))
}
function _C7(_Ti, _xj) {
if (!_Ti) return;
_yj(_Ti, _xj)
}
function _zj(_V8, _W8, _vh, _wh, _Aj, _Bj) {
var _Cj = _Dj(_vh, _wh);
var _Ej = _Fj._Gh(_Cj);
var _Gj = _Ej.getContext('2d');
_Gj.drawImage(canvas, -_V8, -_W8);
if (_Aj) {
_Hj(_Gj, _vh, _wh)
}
var _Ij = new _Jj();
var _Kj = new _Lj();
_Ij._Mj = _Kj;
_Kj._f3 = 0;
_Kj._g3 = 0;
_Kj._J3 = _vh;
_Kj._K3 = _wh;
_Kj._s5 = 0;
_Kj._t5 = 0;
_Kj._u5 = _Kj._J3;
_Kj._v5 = _Kj._K3;
_Kj._w5 = _Kj._J3;
_Kj._x5 = _Kj._K3;
_Kj._y5 = _Cj;
_Kj._Ga = _Ej;
return _Nj._Oj(_Ij);
}
function _Pj(_Ch, _V8, _W8, _vh, _wh, _Aj, _Bj) {
var _Qj = _Fj._Gh(_Ch);
var _Cj = _Dj(_vh, _wh);
var _Ej = _Fj._Gh(_Cj);
var _Gj = _Ej.getContext('2d');
_Gj.drawImage(_Qj, -_V8, -_W8);
if (_Aj) {
_Hj(_Gj, _vh, _wh)
}
var _Ij = new _Jj();
var _Kj = new _Lj();
_Ij._Mj = _Kj;
_Kj._f3 = 0;
_Kj._g3 = 0;
_Kj._J3 = _vh;
_Kj._K3 = _wh;
_Kj._s5 = 0;
_Kj._t5 = 0;
_Kj._u5 = _Kj._J3;
_Kj._v5 = _Kj._K3;
_Kj._w5 = _Kj._J3;
_Kj._x5 = _Kj._K3;
_Kj._y5 = _Cj;
_Kj._Ga = _Ej;
return _Nj._Oj(_Ij)
}
function _Rj(_vh, _wh, _Cd) {
var _Sj = _Dj(_vh, _wh);
var _Tj = _Fj._Gh(_Sj);
var _Gj = _Tj.getContext('2d');
_Gj.globalAlpha = 1.0;
_Gj.fillStyle = _Uj(_Dd(_Cd), 1);
_Gj.fillRect(0, 0, _vh, _wh);
var _Ij = new _Jj();
var _Kj = new _Lj();
_Ij._Mj = _Kj;
_Kj._f3 = 0;
_Kj._g3 = 0;
_Kj._J3 = _vh;
_Kj._K3 = _wh;
_Kj._s5 = 0;
_Kj._t5 = 0;
_Kj._u5 = _Kj._J3;
_Kj._v5 = _Kj._K3;
_Kj._w5 = _Kj._J3;
_Kj._x5 = _Kj._K3;
_Kj._y5 = _Sj;
_Kj._Ga = _Tj;
return _Nj._Oj(_Ij)
}
var _Vj = _Rj;
function _Wj(_U8) {
var _Ej = _Nj._Xj(_U8);
if (_Ej) {
return ({
_vd: _Ej._Mj._Ga,
_Ld: _Ej._Mj
})
}
return null
}
var _Yj = [];
var _Zj = 0;
function __j(_0k, _1k, _G9, _H9, _I9, _J9, _2k, _3k) {
var _4k = _2k - _G9;
var _5k = _I9 - _G9;
var _6k = _0k - _G9;
var _7k = _3k - _H9;
var _8k = _J9 - _H9;
var _9k = _1k - _H9;
var _ak = (_4k * _4k) + (_7k * _7k);
var _bk = (_4k * _5k) + (_7k * _8k);
var _ck = (_4k * _6k) + (_7k * _9k);
var _dk = (_5k * _5k) + (_8k * _8k);
var _ek = (_5k * _6k) + (_8k * _9k);
var _fk = 1.0 / (_ak * _dk - _bk * _bk);
var _vb = (_dk * _ck - _bk * _ek) * _fk;
var _xb = (_ak * _ek - _bk * _ck) * _fk;
return ((_vb >= 0.0) && (_xb >= 0.0) && (_vb + _xb < 1.0))
}
function _gk(_hk, _ik, _jk, _kk, _lk) {
var _mk = (((_hk - _jk) * (_hk - _jk)) + ((_ik - _kk) * (_ik - _kk)));
if (_mk <= _lk) return ! 0;
return ! 1
}
function _nk() {
_nc("d3d_start()")
}
function _ok() {
_nc("d3d_end()")
}
function _pk(enable) {
_nc("d3d_set_hidden()")
}
function _qk(_rk) {
_nc("d3d_set_culling()")
}
function _sk(_13) {
_nc("d3d_set_shading()")
}
function _tk(_uk) {
_nc("d3d_set_zwriteenable()")
}
function _vk(_R3) {
_nc("d3d_set_depth()");
}
function _wk(_xk, _yk, _zk, alpha) {
_nc("draw_set_color_write_enable()")
}
var _Ak = _wk;
function _Bk(enable) {
_nc("d3d_set_shading()")
}
function _Ck(_Dk, _Yb, _Zb, _Ek, _1b) {
_nc("d3d_light_define_direction()")
}
function _Fk(_Dk, _f3, _g3, _Cc, _Gk, _1b) {
_nc("d3d_light_define_point()")
}
function _Hk(_Dk, enable) {
_nc("d3d_light_enable()")
}
function _Ik(_b5) {
_nc("d3d_light_define_ambient()");
}
function _Jk(enable, _bb, start, end) {
_nc("d3d_set_fog()")
}
function _Kk(_G9, _H9, _Lk, _I9, _J9, _Mk, _pc, _Nk, _Ok) {
_nc("d3d_draw_floor()")
}
function _Pk(_G9, _H9, _Lk, _I9, _J9, _Mk, _pc, _Nk, _Ok, _Qk) {
_nc("d3d_draw_ellipsoid()")
}
function _Rk(_G9, _H9, _Lk, _I9, _J9, _Mk, _pc, _Nk, _Ok) {
_nc("d3d_draw_block()")
}
function _Sk(_G9, _H9, _Lk, _I9, _J9, _Mk, _pc, _Nk, _Ok, _c3, _Qk) {
_nc("d3d_draw_cylinder()")
}
function _Tk(_G9, _H9, _Lk, _I9, _J9, _Mk, _pc, _Nk, _Ok, _c3, _Qk) {
_nc("d3d_draw_cone()")
}
function _Uk(_G9, _H9, _Lk, _I9, _J9, _Mk, _pc, _Nk, _Ok) {
_nc("d3d_draw_wall()")
}
function _Vk() {
_nc("d3d_model_create()")
}
function _Wk(_Dk) {
_nc("d3d_model_destroy()")
}
function _Xk(_Dk) {
_nc("d3d_model_clear()")
}
function _Yk(_Dk, _Zk) {
_nc("d3d_model_save()")
}
function __k(_Dk, _Zk) {
_nc("d3d_model_load()")
}
function _0l(_Dk, _f3, _g3, _Cc, _pc) {
_nc("d3d_model_draw()")
}
function _1l(_Dk, _b3) {
_nc("d3d_model_primitive_begin()");
}
function _2l(_Dk, _f3, _g3, _Cc) {
_nc("d3d_model_vertex()")
}
function _3l(_Dk, _f3, _g3, _Cc, _1b, alpha) {
_nc("d3d_model_vertex_color()")
}
function _4l(_Dk, _f3, _g3, _Cc, _uc, _vc) {
_nc("d3d_model_vertex_texture()")
}
function _5l(_Dk, _f3, _g3, _Cc, _uc, _vc, _1b, alpha) {
_nc("d3d_model_vertex_texture_color()")
}
function _6l(_Dk, _f3, _g3, _Cc, _Jc, _Kc, _Lc) {
_nc("d3d_model_vertex_normal()")
}
function _7l(_Dk, _f3, _g3, _Cc, _Jc, _Kc, _Lc, _1b, alpha) {
_nc("d3d_model_vertex_normal_color()")
}
function _8l(_Dk, _f3, _g3, _Cc, _Jc, _Kc, _Lc, _uc, _vc) {
_nc("d3d_model_vertex_normal_texture()")
}
function _9l(_Dk, _f3, _g3, _Cc, _Jc, _Kc, _Lc, _uc, _vc, _1b, alpha) {
_nc("d3d_model_vertex_normal_texture_color()")
}
function _al(_Dk) {
_nc("d3d_model_primitive_end()")
}
function _bl(_Dk, _G9, _H9, _Lk, _I9, _J9, _Mk, _Nk, _Ok) {
_nc("d3d_model_block()")
}
function _cl(_Dk, _G9, _H9, _Lk, _I9, _J9, _Mk, _Nk, _Ok, _c3, _Qk) {
_nc("d3d_model_cylinder()")
}
function _dl(_Dk, _G9, _H9, _Lk, _I9, _J9, _Mk, _Nk, _Ok, _c3, _Qk) {
_nc("d3d_model_cone()")
}
function _el(_Dk, _G9, _H9, _Lk, _I9, _J9, _Mk, _Nk, _Ok, _Qk) {
_nc("d3d_model_ellipsoid()")
}
function _fl(_Dk, _G9, _H9, _Lk, _I9, _J9, _Mk, _Nk, _Ok) {
_nc("d3d_model_wall()")
}
function _gl(_Dk, _G9, _H9, _Lk, _I9, _J9, _Mk, _Nk, _Ok) {
_nc("d3d_model_floor()")
}
function _hl(enable) {
_nc("d3d_set_perspective()");
}
function _il(_jl, _kl, _ll, _ml, _nl, _ol, _pl, _ql, _rl) {
_nc("d3d_set_projection()")
}
function _sl(_jl, _kl, _ll, _ml, _nl, _ol, _pl, _ql, _rl, _0b, _tl, _ul, _vl) {
_nc("d3d_set_projection_ext()")
}
function _wl(_f3, _g3, _J3, _K3, _0b) {
_nc("d3d_set_projection_ortho()")
}
function _xl(_f3, _g3, _J3, _K3, _0b) {
_nc("d3d_set_projection_perspective()")
}
function _yl() {
_nc("d3d_transform_set_identity()")
}
function _zl(_Al, _Bl, _Cl) {
_nc("d3d_transform_set_translation()")
}
function _Dl(_Za, __a, _El) {
_nc("d3d_transform_set_scaling()")
}
function _Fl(_0b) {
_nc("d3d_transform_set_rotation_x()")
}
function _Gl(_0b) {
_nc("d3d_transform_set_rotation_y()")
}
function _Hl(_0b) {
_nc("d3d_transform_set_rotation_z()")
}
function _Il(_Jl, _Kl, _Ll, _0b) {
_nc("d3d_transform_set_rotation_axis()")
}
function _Ml(_Al, _Bl, _Cl) {
_nc("d3d_transform_add_translation()")
}
function _Nl(_Za, __a, _El) {
_nc("d3d_transform_add_scaling()")
}
function _Ol(_0b) {
_nc("d3d_transform_add_rotation_x()")
}
function _Pl(_0b) {
_nc("d3d_transform_add_rotation_y()")
}
function _Ql(_0b) {
_nc("d3d_transform_add_rotation_axis()")
}
function _Rl(_Jl, _Kl, _Ll, _0b) {
_nc("d3d_transform_add_rotation_z()")
}
function _Sl(_V8, _W8, _Qd) {
_nc("d3d_transform_vertex()")
}
function _Tl(_ce) {
_nc("matrix_get()")
}
function _Ul(_ce, _Vl) {
_nc("matrix_set()")
}
function _Wl(_V8, _W8, _Qd, _Xl, _Yl, _Zl, __l, _0m, _1m) {
_nc("matrix_build()")
}
function _2m(_3m, _4m) {
_nc("matrix_multiply()")
}
function _5m() {
_nc("d3d_transform_stack_clear()")
}
function _6m() {
_nc("d3d_transform_stack_empty()")
}
function _7m() {
_nc("d3d_transform_stack_push()")
}
function _8m() {
_nc("d3d_transform_stack_pop()")
}
function _9m() {
_nc("d3d_transform_stack_top()")
}
function _am() {
_nc("d3d_transform_stack_discard()")
}
var _bm = [];
function _cm() {
if (!_sa) {
return
}
_nk = _dm;
_ok = _em;
_qk = _fm;
_sk = _gm;
_tk = _hm;
_vk = _im;
_pk = _jm;
_wk = _km;
_Ak = _km;
_hl = _lm;
_il = _mm;
_sl = _nm;
_wl = _om;
_xl = _pm;
_yl = _qm;
_zl = _rm;
_Dl = _sm;
_Fl = _tm;
_Gl = _um;
_Hl = _vm;
_Il = _wm;
_Ml = _xm;
_Nl = _ym;
_Ol = _zm;
_Pl = _Am;
_Ql = _Bm;
_Rl = _Cm;
_Sl = _Dm;
_5m = _Em;
_6m = _Fm;
_7m = _Gm;
_8m = _Hm;
_9m = _Im;
_am = _Jm;
_Kk = _Km;
_Pk = _Lm;
_Rk = _Mm;
_Sk = _Nm;
_Tk = _Om;
_Uk = _Pm;
_Bk = _Qm;
_Ck = _Rm;
_Fk = _Sm;
_Hk = _Tm;
_Ik = _Um;
_Jk = _Vm;
_Vk = _Wm;
_Wk = _Xm;
_Xk = _Ym;
_Yk = _Zm;
__k = __m;
_0l = _0n;
_1l = _1n;
_2l = _2n;
_3l = _3n;
_4n = _3n;
_4l = _5n;
_5l = _6n;
_7n = _6n;
_6l = _8n;
_7l = _9n;
_8l = _an;
_9l = _bn;
_al = _cn;
_bl = _dn;
_cl = _en;
_dl = _fn;
_el = _gn;
_fl = _hn;
_gl = _in;
_Tl = _jn;
_Ul = _kn;
_Wl = _ln;
_2m = _mn
}
function _dm() {
_nn = !0;
_sa._on(_pn);
_sa._qn(_rn);
_sa._sn(_tn)
}
function _em() {
_nn = !1;
_sa._on(!1);
_sa._qn(!1);
_sa._sn(!1)
}
function _fm(_un) {
_tn = _un > 0.5;
_sa._sn(_tn)
}
function _gm(_Bj) {}
function _hm(_vn) {
_rn = (_vn > 0.5);
_sa._qn(_rn)
}
function _im(_wn) {
if (_nn) {
_xn = Math.min(16000.0, Math.max( - 16000.0, _wn))
} else {
_xn = 0.0
}
}
function _jm(_yn) {
_pn = (_yn > 0.5);
_sa._on(_pn)
}
function _km(_xk, _yk, _zk, alpha) {
_zn._xk = (_xk >= 0.5);
_zn._yk = (_yk >= 0.5);
_zn._zk = (_zk >= 0.5);
_zn.alpha = (alpha >= 0.5);
_sa._An(_zn._xk, _zn._yk, _zn._zk, _zn.alpha)
}
function _lm(enable) {}
function _Qm(_Bn) {
if (_Cn != _Bn) {
_Cn = _Bn;
_sa._Dn(_En())
}
}
function _mm(_jl, _kl, _ll, _ml, _nl, _ol, _pl, _ql, _rl) {
var _Fn = new _Gn();
var _Hn = new _In(_jl, _kl, _ll);
var _Jn = new _In(_ml, _nl, _ol);
var _Kn = new _In(_pl, _ql, _rl);
_Fn._Ln(_Hn, _Jn, _Kn);
_sa._Mn(_Fn)
}
function _nm(_jl, _kl, _ll, _ml, _nl, _ol, _pl, _ql, _rl, _0b, _tl, _Nn, _On) {
var _Fn = new _Gn();
var _Hn = new _In(_jl, _kl, _ll);
var _Jn = new _In(_ml, _nl, _ol);
var _Kn = new _In(_pl, _ql, _rl);
_Fn._Ln(_Hn, _Jn, _Kn);
var _Pn = new _Gn();
_Pn._Qn(_0b, _tl, _Nn, _On);
_Pn._F9[_Rn] *= _Sn;
_sa._Mn(_Fn);
_sa._Tn(_Pn);
_sa._Un((_Sn < 0) ? _4c._Vn: _4c._Wn)
}
function _om(_f3, _g3, _J3, _K3, _0b) {
var _Fn = new _Gn();
var _hc = new _In(_f3 + (_J3 / 2.0), _g3 + (_K3 / 2.0), -_J3);
var _ic = new _In(_f3 + (_J3 / 2.0), _g3 + (_K3 / 2.0), 0.0);
var _jc = new _In(Math.sin( - _0b * (Math.PI / 180.0)), Math.cos( - _0b * (Math.PI / 180.0)), 0.0);
_Fn._Ln(_hc, _ic, _jc);
var _Xn = new _Gn();
_Xn._Yn(_J3, -_K3 * _Sn, 1.0, 32000.0);
_sa._Mn(_Fn);
_sa._Tn(_Xn);
_sa._Un((_Sn < 0) ? _4c._Vn: _4c._Wn)
}
function _pm(_f3, _g3, _J3, _K3, _0b) {
var _Fn = new _Gn();
var _hc = new _In(_f3 + (_J3 / 2.0), _g3 + (_K3 / 2.0), -_J3);
var _ic = new _In(_f3 + (_J3 / 2.0), _g3 + (_K3 / 2.0), 0.0);
var _jc = new _In(Math.sin( - _0b * (Math.PI / 180.0)), Math.cos( - _0b * (Math.PI / 180.0)), 0.0);
_Fn._Ln(_hc, _ic, _jc);
var _Pn = new _Gn();
_Pn._Zn(1.0, (_J3 / _K3), 1.0, 32000.0);
_Pn._F9[_Rn] *= _Sn;
_sa._Mn(_Fn);
_sa._Tn(_Pn);
_sa._Un((_Sn < 0) ? _4c._Vn: _4c._Wn)
}
function _Km(_G9, _H9, _Lk, _I9, _J9, _Mk, _pc, _Nk, _Ok) {
var __n = _0o();
_1o(!0);
_Ac(_1d, _pc); {
_Oc(_G9, _H9, _Lk, 0, 0, 1, 0, 0);
_Oc(_G9, _J9, _Lk, 0, 0, 1, 0, _Ok);
_Oc(_I9, _J9, _Mk, 0, 0, 1, _Nk, _Ok);
_Oc(_I9, _H9, _Mk, 0, 0, 1, _Nk, 0)
}
_Rc();
_1o(__n)
}
function _Lm(_G9, _H9, _Lk, _I9, _J9, _Mk, _pc, _2o, _3o, _Qk) {
var __n = _0o();
_1o(!0);
if (_Qk < 3) {
_Qk = 3
}
if (_Qk > 128) {
_Qk = 128
}
var _ma = [];
var _la = [];
for (var _H3 = 0; _H3 <= _Qk; _H3++) {
_ma[_H3] = Math.cos(_H3 * 2.0 * Math.PI / _Qk);
_la[_H3] = Math.sin(_H3 * 2.0 * Math.PI / _Qk)
}
var _ga = (_I9 + _G9) / 2,
_ha = (_J9 + _H9) / 2,
_4o = (_Mk + _Lk) / 2,
_5o = (_I9 - _G9) / 2,
_6o = (_J9 - _H9) / 2,
_7o = (_Mk - _Lk) / 2;
var _8o = (_Qk + 1) / 2;
for (var __9 = 0; __9 < _8o; __9++) {
var _9o = Math.cos(__9 * Math.PI / _8o),
_ao = Math.sin(__9 * Math.PI / _8o),
_bo = Math.cos((__9 + 1) * Math.PI / _8o),
_co = Math.sin((__9 + 1) * Math.PI / _8o);
_Ac(_0d, _pc);
for (var _H3 = 0; _H3 <= _Qk; _H3++) {
_Oc(_ga + _5o * _ao * _ma[_H3], _ha + _6o * _ao * _la[_H3], _4o + _7o * _9o, _ao * _ma[_H3], _ao * _la[_H3], _9o, _2o * _H3 / _Qk, __9 * _3o / _8o);
_Oc(_ga + _5o * _co * _ma[_H3], _ha + _6o * _co * _la[_H3], _4o + _7o * _bo, _co * _ma[_H3], _co * _la[_H3], _bo, _2o * _H3 / _Qk, (__9 + 1) * _3o / _8o)
}
_Rc();
}
_1o(__n)
}
function _Mm(_G9, _H9, _Lk, _I9, _J9, _Mk, _pc, _2o, _3o) {
var __n = _0o();
_1o(!0);
_Ac(__c, _pc); {
_Oc(_G9, _H9, _Lk, 0, 0, -1, 0, 0);
_Oc(_G9, _J9, _Lk, 0, 0, -1, 0, _3o);
_Oc(_I9, _J9, _Lk, 0, 0, -1, _2o, _3o);
_Oc(_I9, _J9, _Lk, 0, 0, -1, _2o, _3o);
_Oc(_I9, _H9, _Lk, 0, 0, -1, _2o, 0);
_Oc(_G9, _H9, _Lk, 0, 0, -1, 0, 0)
} {
_Oc(_G9, _H9, _Mk, 0, 0, 1, 0, 0);
_Oc(_I9, _H9, _Mk, 0, 0, 1, _2o, 0);
_Oc(_I9, _J9, _Mk, 0, 0, 1, _2o, _3o);
_Oc(_I9, _J9, _Mk, 0, 0, 1, _2o, _3o);
_Oc(_G9, _J9, _Mk, 0, 0, 1, 0, _3o);
_Oc(_G9, _H9, _Mk, 0, 0, 1, 0, 0)
} {
_Oc(_G9, _J9, _Lk, 0, 1, 0, 0, 0);
_Oc(_G9, _J9, _Mk, 0, 1, 0, 0, _3o);
_Oc(_I9, _J9, _Mk, 0, 1, 0, _2o, _3o);
_Oc(_I9, _J9, _Mk, 0, 1, 0, _2o, _3o);
_Oc(_I9, _J9, _Lk, 0, 1, 0, _2o, 0);
_Oc(_G9, _J9, _Lk, 0, 1, 0, 0, 0)
} {
_Oc(_I9, _J9, _Lk, 1, 0, 0, 0, 0);
_Oc(_I9, _J9, _Mk, 1, 0, 0, 0, _3o);
_Oc(_I9, _H9, _Mk, 1, 0, 0, _2o, _3o);
_Oc(_I9, _H9, _Mk, 1, 0, 0, _2o, _3o);
_Oc(_I9, _H9, _Lk, 1, 0, 0, _2o, 0);
_Oc(_I9, _J9, _Lk, 1, 0, 0, 0, 0)
} {
_Oc(_I9, _H9, _Lk, 0, -1, 0, 0, 0);
_Oc(_I9, _H9, _Mk, 0, -1, 0, 0, _3o);
_Oc(_G9, _H9, _Mk, 0, -1, 0, _2o, _3o);
_Oc(_G9, _H9, _Mk, 0, -1, 0, _2o, _3o);
_Oc(_G9, _H9, _Lk, 0, -1, 0, _2o, 0);
_Oc(_I9, _H9, _Lk, 0, -1, 0, 0, 0)
} {
_Oc(_G9, _H9, _Lk, -1, 0, 0, 0, 0);
_Oc(_G9, _H9, _Mk, -1, 0, 0, 0, _3o);
_Oc(_G9, _J9, _Mk, -1, 0, 0, _2o, _3o);
_Oc(_G9, _J9, _Mk, -1, 0, 0, _2o, _3o);
_Oc(_G9, _J9, _Lk, -1, 0, 0, _2o, 0);
_Oc(_G9, _H9, _Lk, -1, 0, 0, 0, 0)
}
_Rc();
_1o(__n)
}
function _Nm(_G9, _H9, _Lk, _I9, _J9, _Mk, _pc, _2o, _3o, _c3, _Qk) {
var _ma = [];
var _la = [];
var __n = _0o();
_1o(!0);
if (_Qk < 3) {
_Qk = 3
}
if (_Qk > 128) {
_Qk = 128
}
for (var _H3 = 0; _H3 <= _Qk; _H3++) {
_ma[_H3] = Math.cos(_H3 * 2.0 * Math.PI / _Qk);
_la[_H3] = Math.sin(_H3 * 2.0 * Math.PI / _Qk)
}
var _ga = (_I9 + _G9) / 2.0;
var _ha = (_J9 + _H9) / 2.0;
var _5o = (_I9 - _G9) / 2.0;
var _6o = (_J9 - _H9) / 2.0;
if (!0 == _c3) {
_Ac(_1d, _pc);
_Oc(_ga, _ha, _Mk, 0, 0, 1, 0, _3o);
for (var _H3 = 0; _H3 <= _Qk; _H3++) {
_Oc(_ga + _ma[_H3] * _5o, _ha + _la[_H3] * _6o, _Mk, 0, 0, 1, 0, _3o)
}
_Rc()
}
_Ac(_0d, _pc);
for (var _H3 = 0; _H3 <= _Qk; _H3++) {
_Oc(_ga + _ma[_H3] * _5o, _ha + _la[_H3] * _6o, _Mk, _ma[_H3], _la[_H3], 0, _2o * _H3 / _Qk, _3o);
_Oc(_ga + _ma[_H3] * _5o, _ha + _la[_H3] * _6o, _Lk, _ma[_H3], _la[_H3], 0, _2o * _H3 / _Qk, 0)
}
_Rc();
if (!0 == _c3) {
_Ac(_1d, _pc);
_Oc(_ga, _ha, _Lk, 0, 0, -1, 0, 0);
for (var _H3 = _Qk; _H3 >= 0; _H3--) {
_Oc(_ga + _ma[_H3] * _5o, _ha + _la[_H3] * _6o, _Lk, 0, 0, -1, 0, 0)
}
_Rc()
}
_1o(__n)
}
function _Om(_G9, _H9, _Lk, _I9, _J9, _Mk, _pc, _2o, _3o, _c3, _Qk) {
var _ma = [];
var _la = [];
var __n = _0o();
_1o(!0);
if (_Qk < 3) {
_Qk = 3
}
if (_Qk > 128) {
_Qk = 128
}
for (var _H3 = 0; _H3 <= _Qk; _H3++) {
_ma[_H3] = Math.cos(_H3 * 2.0 * Math.PI / _Qk);
_la[_H3] = Math.sin(_H3 * 2.0 * Math.PI / _Qk)
}
var _ga = (_I9 + _G9) / 2.0;
var _ha = (_J9 + _H9) / 2.0;
var _5o = (_I9 - _G9) / 2.0;
var _6o = (_J9 - _H9) / 2.0;
_Ac(_0d, _pc);
for (var _H3 = 0; _H3 <= _Qk; _H3++) {
_Oc(_ga, _ha, _Mk, 0, 0, 1, _2o * _H3 / _Qk, _3o);
_Oc(_ga + _ma[_H3] * _5o, _ha + _la[_H3] * _6o, _Lk, _ma[_H3], _la[_H3], 0, _2o * _H3 / _Qk, 0)
}
_Rc();
if (!0 == _c3) {
_Ac(_1d, _pc);
_Oc(_ga, _ha, _Lk, 0, 0, -1, 0, 0);
for (var _H3 = _Qk; _H3 >= 0; _H3--) {
_Oc(_ga + _ma[_H3] * _5o, _ha + _la[_H3] * _6o, _Lk, 0, 0, -1, 0, 0)
}
_Rc()
}
_1o(__n)
}
function _Pm(_G9, _H9, _Lk, _I9, _J9, _Mk, _pc, _2o, _3o) {
var __n = _0o();
_1o(!0);
var _R9 = Math.sqrt(_do(_I9 - _G9) + _do(_J9 - _H9));
if (_R9 == 0.0) {
return
}
var _Jc = (_J9 - _H9) / _R9;
var _Kc = -(_I9 - _G9) / _R9;
_Ac(_1d, _pc); {
_Oc(_G9, _H9, _Lk, _Jc, _Kc, 0, 0, 0);
_Oc(_I9, _J9, _Lk, _Jc, _Kc, 0, _2o, 0);
_Oc(_I9, _J9, _Mk, _Jc, _Kc, 0, _2o, _3o);
_Oc(_G9, _H9, _Mk, _Jc, _Kc, 0, 0, _3o)
}
_Rc();
_1o(__n)
}
function _Rm(_Dk, _Yb, _Zb, _Ek, _1b) {
var _eo = new _In(_Yb, _Zb, _Ek);
_eo._fo();
var _go = _Dk * 4;
_ho[_go + 0] = _eo._io;
_ho[_go + 1] = _eo._jo;
_ho[_go + 2] = _eo._ko;
_ho[_go + 3] = 0.0;
_lo[_go + 0] = ((_1b >> 0) & 0xff) / 255.0;
_lo[_go + 1] = ((_1b >> 8) & 0xff) / 255.0;
_lo[_go + 2] = ((_1b >> 16) & 0xff) / 255.0;
_lo[_go + 3] = ((_1b >> 24) & 0xff) / 255.0;
_mo[_go + 0] = 0;
_mo[_go + 1] = 0;
_mo[_go + 2] = 0;
_mo[_go + 3] = 0;
_sa._no(_Dk, _mo.subarray(_Dk * 4, (_Dk + 1) * 4), _ho.subarray(_Dk * 4, (_Dk + 1) * 4), _lo.subarray(_Dk * 4, (_Dk + 1) * 4))
}
function _Sm(_Dk, _f3, _g3, _Cc, _Gk, _1b) {
var _go = _Dk * 4;
_mo[_go + 0] = _f3;
_mo[_go + 1] = _g3;
_mo[_go + 2] = _Cc;
_mo[_go + 3] = _Gk;
_lo[_go + 0] = ((_1b >> 0) & 0xff) / 255.0;
_lo[_go + 1] = ((_1b >> 8) & 0xff) / 255.0;
_lo[_go + 2] = ((_1b >> 16) & 0xff) / 255.0;
_lo[_go + 3] = ((_1b >> 24) & 0xff) / 255.0;
_ho[_go + 0] = 0;
_ho[_go + 1] = 0;
_ho[_go + 2] = 0;
_ho[_go + 3] = 0;
_sa._no(_Dk, _mo.subarray(_Dk * 4, (_Dk + 1) * 4), _ho.subarray(_Dk * 4, (_Dk + 1) * 4), _lo.subarray(_Dk * 4, (_Dk + 1) * 4))
}
function _Tm(_Dk, enable) {
_oo[_Dk] = enable;
_sa._po(_Dk, enable, _lo.subarray(_Dk * 4, (_Dk + 1) * 4))
}
function _Um(_b5) {
_qo[0] = ((_b5 >> 0) & 0xff) / 255.0;
_qo[1] = ((_b5 >> 8) & 0xff) / 255.0;
_qo[2] = ((_b5 >> 16) & 0xff) / 255.0;
_qo[3] = ((_b5 >> 24) & 0xff) / 255.0;
_sa._ro(_qo)
}
function _Vm(enable, _b5, start, end) {
if (_so == null) {
_so = new Float32Array(8)
}
_so[0] = enable;
var _Gk = end - start;
_so[1] = (_Gk == 0.0) ? 0.0 : (1.0 / _Gk);
_so[2] = end;
_so[3] = 0.0;
_so[4] = ((_b5 >> 0) & 0xff) / 255.0;
_so[5] = ((_b5 >> 8) & 0xff) / 255.0;
_so[6] = ((_b5 >> 16) & 0xff) / 255.0;
_so[7] = ((_b5 >> 24) & 0xff) / 255.0;
_sa._to(_so)
}
function _Wm() {
return (_bm.push(new _uo()) - 1)
}
function _Xm(_Dk) {
if (_bm[_Dk]) {
_bm[_Dk] = null
}
}
function _Ym(_Dk) {
if (_bm[_Dk]) {
_bm[_Dk]._zg()
}
}
function _Zm(_Dk, _Zk) {
if (_bm[_Dk]) {
_bm[_Dk]._vo(_Zk)
}
}
function __m(_Dk, _Zk) {
if (_bm[_Dk]) {
_bm[_Dk]._Ia(_Zk)
}
}
function _0n(_Dk, _f3, _g3, _Cc, _pc) {
if (_bm[_Dk]) {
_bm[_Dk]._6b(_f3, _g3, _Cc, _pc)
}
}
function _1n(_Dk, _b3) {
if (_bm[_Dk]) {
_bm[_Dk]._qe(_b3)
}
}
function _2n(_Dk, _f3, _g3, _Cc) {
if (_bm[_Dk]) {
_bm[_Dk]._wo(_f3, _g3, _Cc)
}
}
function _3n(_Dk, _f3, _g3, _Cc, _1b, alpha) {
if (_bm[_Dk]) {
_bm[_Dk]._xo(_f3, _g3, _Cc, _1b, alpha)
}
}
function _5n(_Dk, _f3, _g3, _Cc, _uc, _vc) {
if (_bm[_Dk]) {
_bm[_Dk]._yo(_f3, _g3, _Cc, _uc, _vc)
}
}
function _6n(_Dk, _f3, _g3, _Cc, _uc, _vc, _1b, alpha) {
if (_bm[_Dk]) {
_bm[_Dk]._zo(_f3, _g3, _Cc, _uc, _vc, _1b, alpha)
}
}
function _8n(_Dk, _f3, _g3, _Cc, _Jc, _Kc, _Lc) {
if (_bm[_Dk]) {
_bm[_Dk]._Ao(_f3, _g3, _Cc, _Jc, _Kc, _Lc)
}
}
function _9n(_Dk, _f3, _g3, _Cc, _Jc, _Kc, _Lc, _1b, alpha) {
if (_bm[_Dk]) {
_bm[_Dk]._Bo(_f3, _g3, _Cc, _Jc, _Kc, _Lc, _1b, alpha)
}
}
function _an(_Dk, _f3, _g3, _Cc, _Jc, _Kc, _Lc, _uc, _vc) {
if (_bm[_Dk]) {
_bm[_Dk]._Co(_f3, _g3, _Cc, _Jc, _Kc, _Lc, _uc, _vc)
}
}
function _bn(_Dk, _f3, _g3, _Cc, _Jc, _Kc, _Lc, _uc, _vc, _1b, alpha) {
if (_bm[_Dk]) {
_bm[_Dk]._Do(_f3, _g3, _Cc, _Jc, _Kc, _Lc, _uc, _vc, _1b, alpha)
}
}
function _cn(_Dk) {
if (_bm[_Dk]) {
_bm[_Dk]._se()
}
}
function _dn(_Dk, _G9, _H9, _Lk, _I9, _J9, _Mk, _Nk, _Ok) {
if (_bm[_Dk]) {
_bm[_Dk]._Eo(_G9, _H9, _Lk, _I9, _J9, _Mk, _Nk, _Ok)
}
}
function _en(_Dk, _G9, _H9, _Lk, _I9, _J9, _Mk, _Nk, _Ok, _c3, _Qk) {
if (_bm[_Dk]) {
_bm[_Dk]._Fo(_G9, _H9, _Lk, _I9, _J9, _Mk, _Nk, _Ok, _c3, _Qk)
}
}
function _fn(_Dk, _G9, _H9, _Lk, _I9, _J9, _Mk, _Nk, _Ok, _c3, _Qk) {
if (_bm[_Dk]) {
_bm[_Dk]._Go(_G9, _H9, _Lk, _I9, _J9, _Mk, _Nk, _Ok, _c3, _Qk)
}
}
function _gn(_Dk, _G9, _H9, _Lk, _I9, _J9, _Mk, _Nk, _Ok, _Qk) {
if (_bm[_Dk]) {
_bm[_Dk]._Ho(_G9, _H9, _Lk, _I9, _J9, _Mk, _Nk, _Ok, _Qk)
}
}
function _hn(_Dk, _G9, _H9, _Lk, _I9, _J9, _Mk, _Nk, _Ok) {
if (_bm[_Dk]) {
_bm[_Dk]._Io(_G9, _H9, _Lk, _I9, _J9, _Mk, _Nk, _Ok)
}
}
function _in(_Dk, _G9, _H9, _Lk, _I9, _J9, _Mk, _Nk, _Ok) {
if (_bm[_Dk]) {
_bm[_Dk]._Jo(_G9, _H9, _Lk, _I9, _J9, _Mk, _Nk, _Ok)
}
}
function _qm() {
_Ko(_Lo, new _Gn())
}
function _rm(_Al, _Bl, _Cl) {
var _F9 = new _Gn();
_F9._Mo(_Al, _Bl, _Cl);
_Ko(_Lo, _F9)
}
function _sm(_Za, __a, _El) {
var _F9 = new _Gn();
_F9._No(_Za, __a, _El);
_Ko(_Lo, _F9)
}
function _tm(_0b) {
var _F9 = new _Gn();
_F9._Oo(_0b);
_Ko(_Lo, _F9)
}
function _um(_0b) {
var _F9 = new _Gn();
_F9._Po(_0b);
_Ko(_Lo, _F9)
}
function _vm(_0b) {
var _F9 = new _Gn();
_F9._Qo(_0b);
_Ko(_Lo, _F9)
}
function _wm(_Jl, _Kl, _Ll, _0b) {
var _F9 = new _Gn();
_F9._Ro(new _In(_Jl, _Kl, _Ll), -_0b);
_Ko(_Lo, _F9)
}
function _xm(_Al, _Bl, _Cl) {
var _So = new _Gn();
_So._Mo(_Al, _Bl, _Cl);
var _To = _Uo(_Lo);
var _F9 = new _Gn();
_F9._Vo(_To, _So);
_Ko(_Lo, _F9)
}
function _ym(_Za, __a, _El) {
var _Wo = new _Gn();
_Wo._No(_Za, __a, _El);
var _To = _Uo(_Lo);
var _F9 = new _Gn();
_F9._Vo(_To, _Wo);
_Ko(_Lo, _F9)
}
function _zm(_0b) {
var _Xo = new _Gn();
_Xo._Oo(_0b);
var _To = _Uo(_Lo);
var _F9 = new _Gn();
_F9._Vo(_To, _Xo);
_Ko(_Lo, _F9)
}
function _Am(_0b) {
var _Xo = new _Gn();
_Xo._Po(_0b);
var _To = _Uo(_Lo);
var _F9 = new _Gn();
_F9._Vo(_To, _Xo);
_Ko(_Lo, _F9)
}
function _Bm(_0b) {
var _Xo = new _Gn();
_Xo._Qo(_0b);
var _To = _Uo(_Lo);
var _F9 = new _Gn();
_F9._Vo(_To, _Xo);
_Ko(_Lo, _F9)
}
function _Cm(_Jl, _Kl, _Ll, _0b) {
var _Xo = new _Gn();
_Xo._Ro(new _In(_Jl, _Kl, _Ll), -_0b);
var _To = _Uo(_Lo);
var _F9 = new _Gn();
_F9._Vo(_To, _Xo);
_Ko(_Lo, _F9)
}
function _Dm(_V8, _W8, _Qd) {
var _To = _Uo(_Lo);
var _0a = (_To._F9[_Yo] * _V8) + (_To._F9[_Zo] * _W8) + (_To._F9[__o] * _Qd) + _To._F9[_0p];
var _2a = (_To._F9[_1p] * _V8) + (_To._F9[_Rn] * _W8) + (_To._F9[_2p] * _Qd) + _To._F9[_3p];
var _4p = (_To._F9[_5p] * _V8) + (_To._F9[_6p] * _W8) + (_To._F9[_7p] * _Qd) + _To._F9[_8p];
var _T9 = [];
_T9[0] = _0a;
_T9[1] = _2a;
_T9[2] = _4p;
return _T9
}
function _Em() {
_9p()
}
function _Fm() {
return _ap()
}
function _Gm() {
var _To = _Uo(_Lo);
return _bp(_To)
}
function _Hm() {
return _cp()
}
function _Im() {
return _dp()
}
function _Jm() {
return _ep()
}
function _jn(_ce) {
var _F9 = [];
if (_ce < 0 || _ce > 2) {
_Xg('ERROR: Invalid matrix type (matrix_get)');
for (var _H3 = 0; _H3 < 16; _H3++) {
_F9[_H3] = 0
}
return _F9
}
var _fp = _gp[_ce];
for (var _H3 = 0; _H3 < 16; _H3++) {
_F9[_H3] = _fp._F9[_H3]
}
return _F9
}
function _kn(_ce, _Vl) {
var _F9 = [];
if (_ce < 0 || _ce > 2) {
_Xg('ERROR: Invalid matrix type (matrix_get)');
for (var _H3 = 0; _H3 < 16; _H3++) {
_F9[_H3] = 0
}
return _F9
}
var _F9 = new _Gn();
var _fp = _gp[_ce];
for (var _H3 = 0; _H3 < 16; _H3++) {
_F9._F9[_H3] = _Vl[_H3]
}
_Ko(_ce, _F9)
}
function _ln(_V8, _W8, _Qd, _Xl, _Yl, _Zl, __l, _0m, _1m) {
var _F9 = new _Gn();
var _hp = (Math.PI / 180.0);
_Xl = (_hp * -_Xl);
_Yl = (_hp * -_Yl);
_Zl = (_hp * -_Zl);
_F9._ip(_V8, _W8, _Qd, _Xl, _Yl, _Zl, __l, _0m, _1m);
var _fp = [];
for (var _H3 = 0; _H3 < 16; _H3++) {
_fp[_H3] = _F9._F9[_H3]
}
return _fp
}
function _mn(_jp, _kp) {
var _lp = new _Gn();
var _mp = new _Gn();
var _np = new _Gn();
for (var _H3 = 0; _H3 < 16; _H3++) {
_lp._F9[_H3] = _jp[_H3];
_mp._F9[_H3] = _kp[_H3]
}
_np._Vo(_lp, _mp);
var _fp = [];
for (var _H3 = 0; _H3 < 16; _H3++) {
_fp[_H3] = _np._F9[_H3]
}
return _fp
}
var _op = 1970;
var _pp = 0;
var _qp = 1;
var _rp = 365.25;
var _sp = 30.4375;
var _tp = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
var _up = [];
var _vp = (86400.0);
var _wp = (_vp * 30);
var _xp = !0;
var _yp = 0;
var _zp = 1;
function _Ap(_Bp) {
if (_Bp < _Cp) {
return _Bp * _Dp
} else {
return (_Bp - _Cp) * _Dp
}
}
function _Ep(_Fp) {
return _Fp % 400 == 0 || (_Fp % 100 != 0 && _Fp % 4 == 0)
}
function _Gp(_Fp) {
var _Hp = _tp.slice();;
if (_Ep(_Fp)) {
_Hp[1] = 29
}
return _Hp
}
var _Dp = 86400000.0;
var _Cp = 25569;
function _Ip(_Jp) {
return ((_Jp < 10) ? "0": "") + _Jp.toString()
}
var _Kp = [];
var _Lp = [];
var _Mp = [];
var _Np = Date.now();
var _Op = 0;
var _Pp = 1;
var _Qp = 2;
var _Rp = 3;
var _Sp = function(text) {
if (!text) return;
if (_Tp) {
if (!_Up) return;
var _ge = _Up.document.getElementById('debug_console');
if (!_ge) return;
var _Vp = String.fromCharCode(0x0a);
text = text.replace('', '').replace('', '');
var _Wp = Date.now() - _Np;
if (!_ge) {
alert(text)
} else {
_ge.value += text + _Vp;
var _Xp = _ge.textLength;
}
_Np = Date.now()
}
if (_Yp != undefined) {
if (_Yp._A5._O5) console.log(text)
}
};
function debug() {
var index;
for (index = 0; index < arguments.length; ++index) {
_Sp(arguments[index])
}
}
function _Xg() {
var index;
for (index = 0; index < arguments.length; ++index) {
_Sp(arguments[index])
}
}
function _Zp(__p) {
if (!_Mp[__p]) {
_Mp[__p] = !0;
_0q(__p)
}
}
function _nc(__p) {
if (!_Kp[__p]) {
_Kp[__p] = !0;
var _1q = "Error: function " + __p + " is not supported.";
debug(_1q)
}
}
function _2q(__p) {
if (!_Kp[__p]) {
_Kp[__p] = !0;
var _1q = "Error: function " + __p + " is not yet implemented";
debug(_1q)
}
}
function _3q(__p) {
if (!_Lp[__p]) {
_Lp[__p] = !0;
var _1q = "Warning: function " + __p;
debug(_1q)
}
}
function _4q(_5q) {
var _6q = _7q._8q(_5q, -1);
var _Vp = String.fromCharCode(0x0a);
var _9q = "";
for (var _H3 = 0; _H3 < _6q.length; _H3++) {
if (_H3 != 0) _9q = _9q + _Vp;
_9q += _6q[_H3]
}
return _9q
}
function _aq(_bq) {
var _19 = document.getElementById(_cq);
var _dq = _19.parentNode;
var _eq = document.createElement("div");
_fq = "gm4html5_login_ID";
_eq.setAttribute("class", "gm4html5_login");
_eq.setAttribute("id", _fq);
_dq.insertBefore(_eq, _19.nextSibling);
_eq.innerHTML = "
" + "" + "" + "";
_gq();
_hq = !0;
var login = document.getElementById("gm4html5_login_button_id");
var _iq = document.getElementById("gm4html5_login_username_id");
var _jq = document.getElementById("gm4html5_login_password_id");
_iq.value = _bq._kq[0];
_jq.value = _bq._kq[1];
login.onmouseup = function() {
var _lq = _iq.value;
var _mq = _jq.value;
var _nq = _oq(_fq);
if (!_nq) return;
_nq._lq = _lq;
_nq._mq = _mq;
_nq.value = 0;
_nq._8j = "";
_nq._pq = !0;
_nq._qq = _rq;
_dq.removeChild(_eq);
_hq = !1;
_sq();
_tq(_bq.id)
};
var _uq = document.getElementById("gm4html5_cancel_button_id");
_uq.onmouseup = function() {
_dq.removeChild(_eq);
_hq = !1;
var _nq = _oq(_fq);
if (!_nq) return;
_nq._lq = "";
_nq._mq = "";
_nq.value = 0;
_nq._8j = "";
_nq._pq = !0;
_nq._qq = _vq;
_sq();
_tq(_bq.id)
};
_wq();
_xq._Wh(_bq.id, null, _yq, _fq)
}
function _zq(_bq) {
var _19 = document.getElementById(_cq);
var _dq = _19.parentNode;
var _eq = document.createElement("div");
_fq = "gm4html5_input_ID";
_eq.setAttribute("class", "gm4html5_login");
_eq.setAttribute("id", _fq);
_dq.insertBefore(_eq, _19.nextSibling);
_eq.innerHTML = "" + "" + "";
_gq();
_hq = !0;
var _Aq = document.getElementById("gm4html5_input_message_id");
var _Bq = document.getElementById("gm4html5_input_text_id");
_Aq.innerHTML = _bq._kq[0];
_Bq.value = _bq._kq[1];
var _Cq = document.getElementById("gm4html5_input_ok_button_id");
_Cq.onmouseup = function() {
var text = _Bq.value;
var _nq = _oq(_fq);
if (!_nq) return;
_nq._lq = "";
_nq._mq = "";
_nq.value = parseFloat(text);
_nq._8j = text;
_nq._pq = !0;
_nq._qq = _rq;
_dq.removeChild(_eq);
_hq = !1;
_sq();
_tq(_bq.id)
};
var _uq = document.getElementById("gm4html5_input_cancel_button_id");
_uq.onmouseup = function() {
_dq.removeChild(_eq);
_hq = !1;
var _nq = _oq(_fq);
if (!_nq) return;
_nq._lq = "";
_nq._mq = "";
_nq.value = 0;
_nq._8j = "";
_nq._pq = !0;
_nq._qq = _vq;
_sq();
_tq(_bq.id)
};
_wq();
_xq._Wh(_bq.id, null, _yq, _fq)
}
function _Dq(_bq) {
var _19 = document.getElementById(_cq);
var _dq = _19.parentNode;
var _eq = document.createElement("div");
_fq = "gm4html5_question_ID";
_eq.setAttribute("class", "gm4html5_login");
_eq.setAttribute("id", _fq);
_dq.insertBefore(_eq, _19.nextSibling);
_eq.innerHTML = "" + "" + " | " + "
" + "
" + "" + "";
_gq();
_hq = !0;
var _Eq = document.getElementById("gm4html5_question_message_id");
_Eq.innerHTML = _bq._kq[0];
var _Cq = document.getElementById("gm4html5_question_yes_button_id");
_Cq.onmouseup = function() {
var _nq = _oq(_fq);
if (!_nq) return;
_nq._lq = "";
_nq._mq = "";
_nq.value = 1;
_nq._8j = "1";
_nq._pq = !0;
_nq._qq = _rq;
_dq.removeChild(_eq);
_hq = !1;
_sq();
_tq(_bq.id)
};
var _uq = document.getElementById("gm4html5_question_no_button_id");
_uq.onmouseup = function() {
_dq.removeChild(_eq);
_hq = !1;
var _nq = _oq(_fq);
if (!_nq) return;
_nq._lq = "";
_nq._mq = "";
_nq.value = 0;
_nq._8j = "0";
_nq._pq = !0;
_nq._qq = _vq;
_sq();
_tq(_bq.id)
};
_wq();
_xq._Wh(_bq.id, null, _yq, _fq)
}
function _Fq(_bq) {
var _19 = document.getElementById(_cq);
var _dq = _19.parentNode;
var _eq = document.createElement("div");
_fq = "gm4html5_message_ID";
_eq.setAttribute("class", "gm4html5_login");
_eq.setAttribute("id", _fq);
_dq.insertBefore(_eq, _19.nextSibling);
_eq.innerHTML = "" + "" + " | " + "
" + "
" + "";
_gq();
_hq = !0;
var _Eq = document.getElementById("gm4html5_message_message_id");
_Eq.innerHTML = _bq._kq[0];
var _Cq = document.getElementById("gm4html5_message_ok_button_id");
_Cq.onmouseup = function() {
var _nq = _oq(_fq);
if (!_nq) return;
_nq._lq = "";
_nq._mq = "";
_nq.value = 1;
_nq._8j = "1";
_nq._pq = !0;
_nq._qq = 1;
_dq.removeChild(_eq);
_hq = !1;
_sq();
_tq(_bq.id)
};
_wq();
_xq._Wh(_bq.id, null, _yq, _fq)
}
function _Gq() {
if (_Hq.length > 0) {
switch (_Hq[0].type) {
case _Op:
_aq(_Hq[0]);
break;
case _Pp:
_zq(_Hq[0]);
break;
case _Qp:
_Dq(_Hq[0]);
break;
case _Rp:
_Fq(_Hq[0]);
break
}
}
}
function _tq(_Ch) {
var index = -1;
for (var _H3 = 0; _H3 < _Hq.length; ++_H3) {
if (_Hq[_H3].id == _Ch) {
index = _H3;
break
}
}
if (index >= 0) {
_Hq.splice(index, 1)
}
_Gq()
}
function _wq() {
if (_hq) {
var login = document.getElementById(_fq);
var _J3 = login.offsetWidth;
var _K3 = login.offsetHeight;
var _0a = (canvas.width - _J3) / 2;
var _2a = (canvas.height - _K3) / 2;
_Pg = new _Iq();
_Og(canvas, _Pg);
login.style.left = ~~ (_0a + _Pg.left) + "px";
login.style.top = ~~ (_2a + _Pg.top) + "px"
}
}
function _Jq(_Kq) {
return _Kq.substr(0, _Kq.indexOf("("))
}
function _0q(_Lq) {
var _Mq = arguments.callee.caller;
var _zi = "Error: " + _Lq + _Nq(13) + "--------------------------------------------------------------------" + _Nq(13);
while (_Mq) {
var name = _Nq(9) + _Jq(_Mq.toString());
_zi += name + '(';
for (var _H3 = 0; _H3 < _Mq.arguments.length; _H3++) {
if (_H3 != 0) {
_zi += ', '
}
if (typeof _Mq.arguments[_H3] == "string") {
_zi += '"' + _Mq.arguments[_H3].toString() + '"'
} else if (typeof _Mq.arguments[_H3] == "number") {
_zi += _Mq.arguments[_H3].toString()
} else {
if (_Mq.arguments[_H3] == undefined) {
_zi += "[undefined]"
} else if (_Mq.arguments[_H3] == null) {
_zi += "[null]"
} else if (_Mq.arguments[_H3].__type) {
_zi += _Mq.arguments[_H3].__type
} else {
_zi += "[unknown]"
}
}
}
_zi += ')' + _Nq(13);
_Mq = _Mq.caller
}
debug(_zi)
}
var _Oq = 3;
var _Pq = -1;
var _Qq = "IDLE";
var _Rq = "PROCESSING";
var _Sq = "AUTHORISED";
var _Tq = "FAILED";
var _Uq = [];
var _Vq;
var _Wq = 0;
var g_fbOAuthToken = "";
function _Xq() {
FB.api('/me/permissions',
function(response) {
debug("fbQueryPermissions response:");
try {
var text = JSON.stringify(response);
debug(text)
} catch(e) {}
_Uq = [];
var data = response["data"];
if (data != undefined) {
var length = data.length;
for (_H3 = 0; _H3 < length; _H3++) {
var _oi = data[_H3];
var _Yq = _oi["permission"];
var status = _oi["status"];
if (_Yq != undefined && status == "granted") {
_Uq.push(_Yq)
}
}
}
debug("current permissions: " + _Uq)
})
}
function _Zq(response) {
try {
var text = JSON.stringify(response);
debug("facebook login response:");
debug(text)
} catch(e) {}
if (response.status === 'connected') {
__q = response.authResponse.userID;
g_fbOAuthToken = response.authResponse.accessToken;
_0r = _Sq;
_Xq()
} else if (response.status === 'not_authorized') {
_0r = 'DENIED'
} else {
_0r = _Tq
}
}
var _1r = {
appId: 0,
status: !0,
cookie: !0,
xfbml: !0,
version: 'v2.0'
};
function _2r() {
_1r.appId = g_fbAppId;
FB.init(_1r);
FB.getLoginStatus(_Zq);
FB.Canvas.setAutoGrow(100);
if (_Yp._A5 && _Yp._A5._B5 && _Yp._A5._3r) {
_Yp._A5._3r()
}
}
function _4r(_mk) {
var _5r, id = 'facebook-jssdk',
_6r = _mk.getElementsByTagName('script')[0];
if (_mk.getElementById(id)) {
return
}
_5r = _mk.createElement('script');
_5r.id = id;
_5r._7r = !0;
_5r.src = "//connect.facebook.net/en_US/sdk.js";
_6r.parentNode.insertBefore(_5r, _6r)
}
function _8r(_9r) {
if (typeof(_Yp._A5.GenerateSpotifyApp) != "undefined") {} else {
var _19 = document.getElementById(_cq);
var _dq = _19.parentNode;
var _eq = document.createElement("div");
_eq.setAttribute("id", "fb-root");
_dq.insertBefore(_eq, _19.nextSibling);
g_fbAppId = _9r;
window.fbAsyncInit = _2r;
_4r(document)
}
}
function _ar(_br) {
var _cr = 'https://graph.facebook.com/me';
var _dr = _cr + '?access_token=' + g_fbOAuthToken;
var _er = new XMLHttpRequest();
_er.open('GET', _dr);
_er.ontimeout = function(_fr) {
_0r = 'FAILED'
};
_er.onerror = function(_fr) {
_0r = 'FAILED'
};
_er.onreadystatechange = function() {
if (_er.readyState != 4) return;
var data = JSON.parse(_er.responseText);
_gr(data);
var _hr = eval(_br);
if (_hr) {
_hr(data)
}
};
_er.send(null)
}
function _gr(data) {
__q = data.id;
_0r = 'AUTHORISED'
}
function _ir(_br) {
if (typeof(getSpotifyApi) != "undefined") {
var _jr = getSpotifyApi(1);
var _kr = _jr.require('sp://import/scripts/api/auth');
var _lr = ['user_about_me', 'publish_stream'];
var _mr = _Yp._A5._nr;
_0r = 'PROCESSING';
_kr.authenticateWithFacebook(_mr, _lr, {
onSuccess: function(accessToken, _or) {
g_fbOAuthToken = accessToken;
_ar(_br)
},
onFailure: function(error) {
console.log('Authentication failed with error: ' + error);
_0r = 'FAILED'
},
onComplete: function() {}
})
}
}
function _pr(_qr) {
if (typeof(_Yp._A5.GenerateSpotifyApp) == "undefined") {
if (typeof(FB) == 'undefined') {
console.log("Facebook initialisation has not completed");
return
}
}
_0r = _Rq;
if (typeof(_Yp._A5.GenerateSpotifyApp) != "undefined") {
_ir(_qr)
} else {
var _Xp = 0;
var _rr = '';
if (_qr >= 0) {
_Xp = _Xh(_qr);
for (var _H3 = 0; _H3 < _Xp; _H3++) {
var _zi = _1i(_qr, _H3);
_rr += _zi;
if (_H3 < _Xp - 1) {
_rr += ','
}
}
FB.login(_Zq, {
scope: _rr
})
} else {
FB.login(_Zq)
}
}
}
function _sr(_tr, _ur, _vr, _wr) {
var _xr = {};
if (_vr != -1) {
var _yr = _pi(_vr);
while (_hi(_vr, _yr)) {
var _zr = _ki(_vr, _yr);
_xr[_yr] = _zr;
_yr = _mi(_vr, _yr)
}
}
_Ar = _wr;
if (_wr != -1) {
_ei(_wr)
}
FB.api(_tr, _ur, _xr, _Br)
}
function _Br(data) {
if (_Ar != -1) {
_Cr(data, _Ar);
try {
var text = JSON.stringify(data);
_ji(_Ar, "response_text", text)
} catch(e) {}
}
debug("response received from facebook_graph_request")
}
function _Dr(_tr, _vr, _wr) {
var _xr = {};
_xr.method = _tr;
if (_vr != -1) {
var _yr = _pi(_vr);
while (_hi(_vr, _yr)) {
var _zr = _ki(_vr, _yr);
_xr[_yr] = _zr;
_yr = _mi(_vr, _yr)
}
}
if (_wr != -1) {
_ei(_wr)
}
FB.ui(_xr,
function(response) {
_Er(response, _wr)
});
return 1
}
function _Er(data, _Fr) {
if (_Fr != -1) {
_Cr(data, _Fr)
}
debug("response received from facebook_dialog:");
try {
var text = JSON.stringify(data);
debug(text)
} catch(e) {}
}
function _Gr() {
this._Hr = "";
this._Ir = 0;
this._Jr = !1;
this._Kr = !1;
this._Lr = ""
}
_Gr.prototype._Mr = function() {
var _zi;
var _H3 = this._Ir;
var _9q = this._Hr;
while (_H3 < _9q.length) {
var _I3 = _9q.charCodeAt(_H3);
if (_I3 == 0x0d || _I3 == 0x0a) {
_H3++;
_I3 = _9q.charCodeAt(_H3);
if (_I3 == 0x0d || _I3 == 0x0a) {
_H3++
}
break
} else {
_H3++
}
}
this._Ir = _H3
};
_Gr.prototype._Nr = function() {
var _zi;
var _H3 = this._Ir;
var _9q = this._Hr;
while (_H3 < _9q.length) {
var _I3 = _9q.charCodeAt(_H3);
if (_I3 == 0x0d || _I3 == 0x0a || _I3 == 0x09 || _I3 == 0x20) {
_H3++
} else {
break
}
}
this._Ir = _H3
};
function _Or(_Pr) {
var _Qr = _Rr._Gh(_Pr);
if (!_Qr) {
_Xg("Error: Illegal file handle");
return
}
if (_Qr._Lr != null) {
if (_Qr._Kr) {
_Sr(_Qr._Lr, _Qr._Hr)
}
}
_Rr._di(_Pr)
}
function _Tr(_Ur) {
_Qr = new _Gr();
_Qr._Lr = _Ur;
_Qr._Hr = "";
_Qr._Ir = 0;
_Qr._Vr = !0;
return _Rr._Wh(_Qr)
}
function _Wr(_Pr, _Xr) {
var _Qr = _Rr._Gh(_Pr);
if (!_Qr) {
_Xg("Error: Illegal file handle");
return
}
if (!_Qr._Vr) {
_Xg("Error: File " + _Qr._Lr + " has not been opened with WRITE permisions");
return
}
_Qr._Hr += _6q = _4q(_Xr);
_Qr._Kr = !0;
_Qr._Ir = _Qr._Hr.length
}
function _Yr(_Ur) {
var _Zr = __r(_Ur, !0);
if (_Zr == !0) return ! 0;
return __r(_Ur, !1)
}
function _0s(_1s) {
var _Nh;
switch (typeof(_1s)) {
case "object":
if (_1s instanceof Array) {
_Nh = new _6i(_5i, _2s(_1s))
} else {
_Nh = new _6i(_4i, _3s(_1s))
}
break;
case "boolean":
_Nh = _1s ? 1 : 0;
break;
case "number":
case "string":
_Nh = _1s;
break;
default:
_Nh = _1s.toString();
break
}
return _Nh
}
function _2s(_7i) {
var _Nh = _Sh();
for (var _H3 = 0; _H3 < _7i.length; ++_H3) {
var _xb = _0s(_7i[_H3]);
_Zh(_Nh, _xb)
}
return _Nh
}
function _3s(_7i) {
var _Nh = _9i();
for (var _4s in _7i) {
var _kb = _7i[_4s];
var _xb = _0s(_kb);
_ji(_Nh, _4s, _xb)
}
return _Nh
}
function _5s(_1s) {
var _Nh;
switch (typeof(_1s)) {
case "object":
switch (_1s._8i) {
case _5i:
_Nh = _6s(_1s.Object);
break;
case _4i:
_Nh = _7s(_1s.Object);
break;
default:
_Nh = _1s.toString();
break
}
break;
case "number":
case "string":
_Nh = _1s;
break;
default:
_Nh = _1s.toString();
break
}
return _Nh
}
function _6s(_8s) {
var _Nh = [];
var _9s = _Vh._Gh(_8s);
if (_9s) {
for (var _H3 = 0; _H3 < _9s._3i.length; ++_H3) {
if (_9s._3i[_H3] != undefined) _Nh.push(_5s(_9s._3i[_H3]))
}
}
return _Nh
}
function _7s(_as) {
var _Nh = {};
var _ai = _bi._Gh(_as);
if (_ai) {
for (var _H3 in _ai) {
if (!_ai.hasOwnProperty(_H3)) continue;
if (_ai[_H3] != undefined) _Nh[_H3] = _5s(_ai[_H3])
}
}
return _Nh
}
function _W6(_bs) {
_7q._cs = _bs
}
function _X6(_bs) {
_7q._ds = _bs
}
function _V6(_es) {
_7q._fs = _es
}
function _a7(_V8, _W8, __p) {
_7q._gs(__p.toString(), _V8, _W8, -1, -1, 0, 1, 1)
}
var _hs = _is;
function _is(_V8, _W8, __p, _js, _ks, _ls, _ms, _Gd) {
_3q("draw_text_color() only uses the 1st colour");
var _ns = _Ad;
var _os = _ps;
_Ad = _Gd;
_Y6(_js);
_7q._gs(__p.toString(), _V8, _W8, -1, -1, 0, 1, 1);
_Ad = _ns;
_Y6(_os)
}
var _qs = _rs;
function _rs(_V8, _W8, __p, _ss, _vh, _js, _ks, _ls, _ms, _Gd) {
_3q("draw_text_ext_color() only uses the 1st colour");
var _ns = _Ad;
var _os = _ps;
_Ad = _Gd;
_Y6(_js);
_7q._gs(__p.toString(), _V8, _W8, _ss, _vh, 0, 1, 1);
_Ad = _ns;
_Y6(_os)
}
function _ts(_V8, _W8, __p, __l, _0m, _Z8) {
_7q._gs(__p.toString(), _V8, _W8, -1, -1, _Z8, __l, _0m)
}
var _us = _vs;
function _vs(_V8, _W8, __p, _ss, _vh, __l, _0m, _Z8, _js, _ks, _ls, _ms, _Gd) {
_3q("draw_text_ext_transformed_color() only uses the 1st colour");
var _ns = _Ad;
var _os = _ps;
_Ad = _Gd;
_Y6(_js);
_7q._gs(__p.toString(), _V8, _W8, _ss, _vh, _Z8, __l, _0m);
_Ad = _ns;
_Y6(_os)
}
var _ws = _xs;
function _xs(_V8, _W8, __p, __l, _0m, _Z8, _js, _ks, _ls, _ms, _Gd) {
_3q("draw_text_transformed_color() only uses the 1st colour");
var _ns = _Ad;
var _os = _ps;
_Ad = _Gd;
_Y6(_js);
_7q._gs(__p.toString(), _V8, _W8, -1, -1, _Z8, __l, _0m);
_Ad = _ns;
_Y6(_os)
}
function _ys(_J8, __d, _zs, _As, _Bs, _Cs, _Ds) {
var _Es = new _Fs();
_Es._Gs = !0;
_Es._Z2 = "fnt_" + _J8;
_Es._Hs = _J8;
_Es._x3 = __d;
_Es.bold = _zs;
_Es._y3 = _As;
_Es._z3 = _Bs;
_Es._A3 = _Cs;
_Es._Is = !1;
if (_J8.toLowerCase().lastIndexOf(".ttf") != -1) {
_Es._Js = new _Ks();
_Es._Js.onload = function() {
_Es._Is = !0
};
_Es._Js.onerror = function(err) {
alert(err)
};
_Es._Js.src = "html5game/" + _J8;
_Es._Ls = __d + "px " + _Es._Js._Ms + " "
} else {
_Es._Ls = __d + "px " + _J8 + " ";
_Es._Is = !0
}
if (_zs) _Es._Ls = _Es._Ls + "bold ";
if (_As) _Es._Ls = _Es._Ls + "Italic ";
if (_Ds) {
return _7q._Ns(_Es)
} else {
return _Es
}
}
var _Os = 0,
_Ps = 1,
_Qs = 2,
_Rs = 3,
_Ss = 4,
_Ts = 5,
_Us = 6,
_Vs = 7,
_Ws = 8,
_Xs = 9;
function _67(_7i) {
return _Ys._Gh(_7i)._Zs.length
}
function __s() {
var _0t = _1t("hiscores_data_", !0);
if (_0t != null) {
_2t = JSON.parse(_0t);
var _H3;
for (_H3 = 0; _H3 < _3t; _H3++) {
_4t[_H3] = _2t[_H3].name;
_5t[_H3] = _2t[_H3].value
}
}
}
function _6t() {
_5t[0] = _5t[1] = _5t[2] = _5t[3] = _5t[4] = _5t[5] = _5t[6] = _5t[7] = _5t[8] = _5t[9] = 0;
_4t[0] = _4t[1] = _4t[2] = _4t[3] = _4t[4] = _4t[5] = _4t[6] = _4t[7] = _4t[8] = _4t[9] = _7t
}
function _8t(_9t, _at, _bt) {
var _ct, _dt, _et, _ft, _gt, _ht;
_ct = (_9t >> 16) & 0xff;
_et = (_9t >> 8) & 0xff;
_gt = (_9t & 0xff);
_dt = (_at >> 16) & 0xff;
_ft = (_at >> 8) & 0xff;
_ht = (_at & 0xff);
var _it = 1.0 - _bt;
var _T9 = _Xi(_ct * _it + _dt * _bt);
var _jb = _Xi(_et * _it + _ft * _bt);
var _W9 = _Xi(_gt * _it + _ht * _bt);
var _1b = ((_T9 & 0xff) << 16) | ((_jb & 0xff) << 8) | (_W9 & 0xff);
return _1b
}
function _jt(_9t, _at, _bt) {
return _8t(_9t, _at, _bt)
}
function _kt(_lt, _xj, _mt, _nt) {
var _ot = _pt._Gh(_mt);
if ((_ot != null) && (_ot != undefined)) {
var _qt = _ot._rt[_nt];
if ((_qt != null) && (_qt != undefined)) {
_qt._st(_lt, _lt)
}
}
}
var _tt = !0;
function _yj(_lt, _ut) {
_lt._vt(_wt, _xt, _ut)
}
var _yt = debug;
function _zt() {
return "en"
}
function _58(_Bn) {}
function _At(data) {
var _Bt = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";
var _Ct, _Dt, _Et, _Ft, _Gt, _Ht, _It, _Jt;
var _H3 = 0;
var _Kt = 0;
var _Lt = "";
var _Mt = [];
if (!data) {
return data
}
data += '';
do {
_Ft = _Bt.indexOf(data.charAt(_H3++));
_Gt = _Bt.indexOf(data.charAt(_H3++));
_Ht = _Bt.indexOf(data.charAt(_H3++));
_It = _Bt.indexOf(data.charAt(_H3++));
_Jt = _Ft << 18 | _Gt << 12 | _Ht << 6 | _It;
_Ct = _Jt >> 16 & 0xff;
_Dt = _Jt >> 8 & 0xff;
_Et = _Jt & 0xff;
if (_Ht == 64) {
_Mt[_Kt++] = String.fromCharCode(_Ct);
} else if (_It == 64) {
_Mt[_Kt++] = String.fromCharCode(_Ct, _Dt)
} else {
_Mt[_Kt++] = String.fromCharCode(_Ct, _Dt, _Et)
}
} while ( _H3 < data . length );
_Lt = _Mt.join('');
return _Lt
}
function _Nt(_fr) {
if (_Yp._A5.TrackingID) {
_gaq.push(['_trackEvent', 'GMEvent', _fr])
} else if (_Yp._A5.FlurryId) {
FlurryAgent.logEvent(_fr)
}
}
function _Ot(_fr) {
var arguments = _Ot.arguments;
if (_Yp._A5.TrackingID) {
if (arguments.length >= 3) {
_gaq.push(['_trackEvent', 'GMEvent', _fr, arguments[1], arguments[2]])
} else {
_gaq.push(['_trackEvent', 'GMEvent', _fr])
}
} else if (_Yp._A5.FlurryId) {
if ((arguments.length >= 3) && (arguments.length & 1) == 1) {
var _Pt = {};
var _Qt = arguments.length - 1;
if (_Qt > 10) {
_Qt = 10
}
for (var _H3 = 0; _H3 < _Qt; _H3 += 2) {
_Pt[arguments[_H3 + 1]] = arguments[_H3 + 2].toString()
}
FlurryAgent.logEvent(_fr, _Pt)
} else {
FlurryAgent.logEvent(_fr)
}
}
}
function _Rt(_St) {
return _Tt(_St)
}
var _Ut = 0;
var _Vt = "";
function _Wt(_9q) {
return _Xt(_Yt(_Zt(_9q)))
}
function _Yt(_9q) {
return __t(_0u(_1u(_9q), _9q.length * 8))
}
function _Xt(_2u) {
try {
_Ut
} catch(e) {
_Ut = 0
}
var _3u = _Ut ? "0123456789ABCDEF": "0123456789abcdef";
var _4u = "";
var _f3;
for (var _H3 = 0; _H3 < _2u.length; _H3++) {
_f3 = _2u.charCodeAt(_H3);
_4u += _3u.charAt((_f3 >>> 4) & 0x0F) + _3u.charAt(_f3 & 0x0F)
}
return _4u
}
function _Zt(_2u) {
var _4u = "";
var _H3 = -1;
var _f3, _g3;
while (++_H3 < _2u.length) {
_f3 = _2u.charCodeAt(_H3);
_g3 = _H3 + 1 < _2u.length ? _2u.charCodeAt(_H3 + 1) : 0;
if (0xD800 <= _f3 && _f3 <= 0xDBFF && 0xDC00 <= _g3 && _g3 <= 0xDFFF) {
_f3 = 0x10000 + ((_f3 & 0x03FF) << 10) + (_g3 & 0x03FF);
_H3++
}
if (_f3 <= 0x7F) _4u += String.fromCharCode(_f3);
else if (_f3 <= 0x7FF) _4u += String.fromCharCode(0xC0 | ((_f3 >>> 6) & 0x1F), 0x80 | (_f3 & 0x3F));
else if (_f3 <= 0xFFFF) _4u += String.fromCharCode(0xE0 | ((_f3 >>> 12) & 0x0F), 0x80 | ((_f3 >>> 6) & 0x3F), 0x80 | (_f3 & 0x3F));
else if (_f3 <= 0x1FFFFF) _4u += String.fromCharCode(0xF0 | ((_f3 >>> 18) & 0x07), 0x80 | ((_f3 >>> 12) & 0x3F), 0x80 | ((_f3 >>> 6) & 0x3F), 0x80 | (_f3 & 0x3F))
}
return _4u
}
function _1u(_2u) {
var _4u = Array(_2u.length >> 2);
for (var _H3 = 0; _H3 < _4u.length; _H3++) _4u[_H3] = 0;
for (var _H3 = 0; _H3 < _2u.length * 8; _H3 += 8) _4u[_H3 >> 5] |= (_2u.charCodeAt(_H3 / 8) & 0xFF) << (_H3 % 32);
return _4u
}
function __t(_2u) {
var _4u = "";
for (var _H3 = 0; _H3 < _2u.length * 32; _H3 += 8) _4u += String.fromCharCode((_2u[_H3 >> 5] >>> (_H3 % 32)) & 0xFF);
return _4u
}
function _0u(_f3, _Xp) {
_f3[_Xp >> 5] |= 0x80 << ((_Xp) % 32);
_f3[(((_Xp + 64) >>> 9) << 4) + 14] = _Xp;
var _kb = 1732584193;
var _W9 = -271733879;
var _I3 = -1732584194;
var _mk = 271733878;
for (var _H3 = 0; _H3 < _f3.length; _H3 += 16) {
var _5u = _kb;
var _6u = _W9;
var _7u = _I3;
var _8u = _mk;
_kb = _9u(_kb, _W9, _I3, _mk, _f3[_H3 + 0], 7, -680876936);
_mk = _9u(_mk, _kb, _W9, _I3, _f3[_H3 + 1], 12, -389564586);
_I3 = _9u(_I3, _mk, _kb, _W9, _f3[_H3 + 2], 17, 606105819);
_W9 = _9u(_W9, _I3, _mk, _kb, _f3[_H3 + 3], 22, -1044525330);
_kb = _9u(_kb, _W9, _I3, _mk, _f3[_H3 + 4], 7, -176418897);
_mk = _9u(_mk, _kb, _W9, _I3, _f3[_H3 + 5], 12, 1200080426);
_I3 = _9u(_I3, _mk, _kb, _W9, _f3[_H3 + 6], 17, -1473231341);
_W9 = _9u(_W9, _I3, _mk, _kb, _f3[_H3 + 7], 22, -45705983);
_kb = _9u(_kb, _W9, _I3, _mk, _f3[_H3 + 8], 7, 1770035416);
_mk = _9u(_mk, _kb, _W9, _I3, _f3[_H3 + 9], 12, -1958414417);
_I3 = _9u(_I3, _mk, _kb, _W9, _f3[_H3 + 10], 17, -42063);
_W9 = _9u(_W9, _I3, _mk, _kb, _f3[_H3 + 11], 22, -1990404162);
_kb = _9u(_kb, _W9, _I3, _mk, _f3[_H3 + 12], 7, 1804603682);
_mk = _9u(_mk, _kb, _W9, _I3, _f3[_H3 + 13], 12, -40341101);
_I3 = _9u(_I3, _mk, _kb, _W9, _f3[_H3 + 14], 17, -1502002290);
_W9 = _9u(_W9, _I3, _mk, _kb, _f3[_H3 + 15], 22, 1236535329);
_kb = _au(_kb, _W9, _I3, _mk, _f3[_H3 + 1], 5, -165796510);
_mk = _au(_mk, _kb, _W9, _I3, _f3[_H3 + 6], 9, -1069501632);
_I3 = _au(_I3, _mk, _kb, _W9, _f3[_H3 + 11], 14, 643717713);
_W9 = _au(_W9, _I3, _mk, _kb, _f3[_H3 + 0], 20, -373897302);
_kb = _au(_kb, _W9, _I3, _mk, _f3[_H3 + 5], 5, -701558691);
_mk = _au(_mk, _kb, _W9, _I3, _f3[_H3 + 10], 9, 38016083);
_I3 = _au(_I3, _mk, _kb, _W9, _f3[_H3 + 15], 14, -660478335);
_W9 = _au(_W9, _I3, _mk, _kb, _f3[_H3 + 4], 20, -405537848);
_kb = _au(_kb, _W9, _I3, _mk, _f3[_H3 + 9], 5, 568446438);
_mk = _au(_mk, _kb, _W9, _I3, _f3[_H3 + 14], 9, -1019803690);
_I3 = _au(_I3, _mk, _kb, _W9, _f3[_H3 + 3], 14, -187363961);
_W9 = _au(_W9, _I3, _mk, _kb, _f3[_H3 + 8], 20, 1163531501);
_kb = _au(_kb, _W9, _I3, _mk, _f3[_H3 + 13], 5, -1444681467);
_mk = _au(_mk, _kb, _W9, _I3, _f3[_H3 + 2], 9, -51403784);
_I3 = _au(_I3, _mk, _kb, _W9, _f3[_H3 + 7], 14, 1735328473);
_W9 = _au(_W9, _I3, _mk, _kb, _f3[_H3 + 12], 20, -1926607734);
_kb = _bu(_kb, _W9, _I3, _mk, _f3[_H3 + 5], 4, -378558);
_mk = _bu(_mk, _kb, _W9, _I3, _f3[_H3 + 8], 11, -2022574463);
_I3 = _bu(_I3, _mk, _kb, _W9, _f3[_H3 + 11], 16, 1839030562);
_W9 = _bu(_W9, _I3, _mk, _kb, _f3[_H3 + 14], 23, -35309556);
_kb = _bu(_kb, _W9, _I3, _mk, _f3[_H3 + 1], 4, -1530992060);
_mk = _bu(_mk, _kb, _W9, _I3, _f3[_H3 + 4], 11, 1272893353);
_I3 = _bu(_I3, _mk, _kb, _W9, _f3[_H3 + 7], 16, -155497632);
_W9 = _bu(_W9, _I3, _mk, _kb, _f3[_H3 + 10], 23, -1094730640);
_kb = _bu(_kb, _W9, _I3, _mk, _f3[_H3 + 13], 4, 681279174);
_mk = _bu(_mk, _kb, _W9, _I3, _f3[_H3 + 0], 11, -358537222);
_I3 = _bu(_I3, _mk, _kb, _W9, _f3[_H3 + 3], 16, -722521979);
_W9 = _bu(_W9, _I3, _mk, _kb, _f3[_H3 + 6], 23, 76029189);
_kb = _bu(_kb, _W9, _I3, _mk, _f3[_H3 + 9], 4, -640364487);
_mk = _bu(_mk, _kb, _W9, _I3, _f3[_H3 + 12], 11, -421815835);
_I3 = _bu(_I3, _mk, _kb, _W9, _f3[_H3 + 15], 16, 530742520);
_W9 = _bu(_W9, _I3, _mk, _kb, _f3[_H3 + 2], 23, -995338651);
_kb = _cu(_kb, _W9, _I3, _mk, _f3[_H3 + 0], 6, -198630844);
_mk = _cu(_mk, _kb, _W9, _I3, _f3[_H3 + 7], 10, 1126891415);
_I3 = _cu(_I3, _mk, _kb, _W9, _f3[_H3 + 14], 15, -1416354905);
_W9 = _cu(_W9, _I3, _mk, _kb, _f3[_H3 + 5], 21, -57434055);
_kb = _cu(_kb, _W9, _I3, _mk, _f3[_H3 + 12], 6, 1700485571);
_mk = _cu(_mk, _kb, _W9, _I3, _f3[_H3 + 3], 10, -1894986606);
_I3 = _cu(_I3, _mk, _kb, _W9, _f3[_H3 + 10], 15, -1051523);
_W9 = _cu(_W9, _I3, _mk, _kb, _f3[_H3 + 1], 21, -2054922799);
_kb = _cu(_kb, _W9, _I3, _mk, _f3[_H3 + 8], 6, 1873313359);
_mk = _cu(_mk, _kb, _W9, _I3, _f3[_H3 + 15], 10, -30611744);
_I3 = _cu(_I3, _mk, _kb, _W9, _f3[_H3 + 6], 15, -1560198380);
_W9 = _cu(_W9, _I3, _mk, _kb, _f3[_H3 + 13], 21, 1309151649);
_kb = _cu(_kb, _W9, _I3, _mk, _f3[_H3 + 4], 6, -145523070);
_mk = _cu(_mk, _kb, _W9, _I3, _f3[_H3 + 11], 10, -1120210379);
_I3 = _cu(_I3, _mk, _kb, _W9, _f3[_H3 + 2], 15, 718787259);
_W9 = _cu(_W9, _I3, _mk, _kb, _f3[_H3 + 9], 21, -343485551);
_kb = _du(_kb, _5u);
_W9 = _du(_W9, _6u);
_I3 = _du(_I3, _7u);
_mk = _du(_mk, _8u)
}
return Array(_kb, _W9, _I3, _mk)
}
function _eu(_fu, _kb, _W9, _f3, _9q, _V9) {
return _du(_gu(_du(_du(_kb, _fu), _du(_f3, _V9)), _9q), _W9)
}
function _9u(_kb, _W9, _I3, _mk, _f3, _9q, _V9) {
return _eu((_W9 & _I3) | ((~_W9) & _mk), _kb, _W9, _f3, _9q, _V9)
}
function _au(_kb, _W9, _I3, _mk, _f3, _9q, _V9) {
return _eu((_W9 & _mk) | (_I3 & (~_mk)), _kb, _W9, _f3, _9q, _V9)
}
function _bu(_kb, _W9, _I3, _mk, _f3, _9q, _V9) {
return _eu(_W9 ^ _I3 ^ _mk, _kb, _W9, _f3, _9q, _V9)
}
function _cu(_kb, _W9, _I3, _mk, _f3, _9q, _V9) {
return _eu(_I3 ^ (_W9 | (~_mk)), _kb, _W9, _f3, _9q, _V9)
}
function _du(_f3, _g3) {
var _hu = (_f3 & 0xFFFF) + (_g3 & 0xFFFF);
var _iu = (_f3 >> 16) + (_g3 >> 16) + (_hu >> 16);
return (_iu << 16) | (_hu & 0xFFFF)
}
function _gu(_ju, _ku) {
return (_ju << _ku) | (_ju >>> (32 - _ku))
}
function _Tt(_9q) {
return _Xt(_lu(_Zt(_9q)))
}
function _lu(_9q) {
return _mu(_nu(_ou(_9q), _9q.length * 8))
}
function _ou(_2u) {
var _4u = Array(_2u.length >> 2);
for (var _H3 = 0; _H3 < _4u.length; _H3++) _4u[_H3] = 0;
for (var _H3 = 0; _H3 < _2u.length * 8; _H3 += 8) _4u[_H3 >> 5] |= (_2u.charCodeAt(_H3 / 8) & 0xFF) << (24 - _H3 % 32);
return _4u
}
function _mu(_2u) {
var _4u = "";
for (var _H3 = 0; _H3 < _2u.length * 32; _H3 += 8) _4u += String.fromCharCode((_2u[_H3 >> 5] >>> (24 - _H3 % 32)) & 0xFF);
return _4u
}
function _nu(_f3, _Xp) {
_f3[_Xp >> 5] |= 0x80 << (24 - _Xp % 32);
_f3[((_Xp + 64 >> 9) << 4) + 15] = _Xp;
var _J3 = Array(80);
var _kb = 1732584193;
var _W9 = -271733879;
var _I3 = -1732584194;
var _mk = 271733878;
var e = -1009589776;
for (var _H3 = 0; _H3 < _f3.length; _H3 += 16) {
var _5u = _kb;
var _6u = _W9;
var _7u = _I3;
var _8u = _mk;
var _pu = e;
for (var __9 = 0; __9 < 80; __9++) {
if (__9 < 16) _J3[__9] = _f3[_H3 + __9];
else _J3[__9] = _gu(_J3[__9 - 3] ^ _J3[__9 - 8] ^ _J3[__9 - 14] ^ _J3[__9 - 16], 1);
var _V9 = _du(_du(_gu(_kb, 5), _qu(__9, _W9, _I3, _mk)), _du(_du(e, _J3[__9]), _ru(__9)));
e = _mk;
_mk = _I3;
_I3 = _gu(_W9, 30);
_W9 = _kb;
_kb = _V9
}
_kb = _du(_kb, _5u);
_W9 = _du(_W9, _6u);
_I3 = _du(_I3, _7u);
_mk = _du(_mk, _8u);
e = _du(e, _pu)
}
return Array(_kb, _W9, _I3, _mk, e)
}
function _qu(_V9, _W9, _I3, _mk) {
if (_V9 < 20) return (_W9 & _I3) | ((~_W9) & _mk);
if (_V9 < 40) return _W9 ^ _I3 ^ _mk;
if (_V9 < 60) return (_W9 & _I3) | (_W9 & _mk) | (_I3 & _mk);
return _W9 ^ _I3 ^ _mk
}
function _ru(_V9) {
return (_V9 < 20) ? 1518500249 : (_V9 < 40) ? 1859775393 : (_V9 < 60) ? -1894007588 : -899497514
}
function _su(_J8, _tu) {
for (var index = 0; index < _tu.length; index++) {
var _uu = _tu[index];
if (_uu._Z2 == _J8) {
return index
}
}
return - 1
}
var _vu = 1,
_wu = 2,
_xu = 3,
_yu = 4,
_zu = 5,
_Au = 6,
_Bu = 7,
_Cu = 8,
_Du = 9,
_Eu = 10,
_Fu = 11;
var _Gu = 96;
var _Hu = 96;
function _Iu() {
return 0
}
var _Ju = _Ku;
function _Ku(_Sd, _Gd) {
_yb._Lu();
var _Mu = [];
_Mu[0] = 1;
_Mu[1] = 0;
_Mu[2] = 0;
_Mu[3] = 1;
_Mu[4] = 0;
_Mu[5] = 0;
_yb._Nu(_Mu[0], _Mu[1], _Mu[2], _Mu[3], _Mu[4], _Mu[5]);
if (!_yb.clearRect || _Sd != 0 || _Gd != 0) {
_yb.globalAlpha = _Gd;
_yb.fillStyle = _Uj(_Dd(_Sd), _Gd);
_yb.globalCompositeOperation = 'copy';
_yb.fillRect(_Ou, _Pu, _Qu, _Ru)
} else {
_yb.clearRect(_Ou, _Pu, _Qu, _Ru)
}
_yb._Su();
}
function _Tu(_Uu, _Vu, _Wu) {
return (~~_Uu) | (_Vu << 8) | (_Wu << 16)
}
var _Xu = _Tu;
var _Yu = _Yu;
function _Zu(_Sd) {
return (_Sd >> 16) & 0xff
}
var __u = _Zu;
function _0v(_Sd) {
return (_Sd >> 8) & 0xff
}
var _1v = _0v;
function _2v(_Sd) {
return (_Sd & 0xff)
}
var _3v = _2v;
function _4v(_Sd) {
var _5v = 0.0;
var _6v = 0.0;
var _7v = 0.0;
var _ja = 0.0;
var _la = 0.0;
var _8v = 0.0;
var _mk = 0.0;
var _F9 = 0.0;
_5v = ((_Sd >> 16) & 0xff) / 255.0;
_6v = ((_Sd >> 8) & 0xff) / 255.0;
_7v = (_Sd & 0xff) / 255.0;
_F9 = _U9(_U9(_5v, _6v), _7v);
_8v = _S9(_S9(_5v, _6v), _7v);
_mk = _8v - _F9;
if (_8v == 0) _la = 0.0;
else _la = 1.0 * _mk / _8v;
if (_la == 0) _ja = 0.0;
else if (_5v == _8v) _ja = 60.0 * (_6v - _7v) / _mk;
else if (_6v == _8v) _ja = 120.0 + 60.0 * (_7v - _5v) / _mk;
else _ja = 240.0 + 60.0 * (_5v - _6v) / _mk;
if (_ja < 0) _ja = _ja + 360.0;
var _xb = (Math.floor(_8v * 255.0) & 0xff) << 16;
var _9q = (Math.floor(_la * 255.0) & 0xff) << 8;
var _K3 = (Math.floor(_ja * 255.0 / 360.0)) & 0xff;
return (_xb | _9q | _K3);
}
function _9v(_Sd) {
return _4v(_Sd) & 0xff
}
var _av = _9v;
function _bv(_Sd) {
return (_4v(_Sd) >> 8) & 0xff
}
var _cv = _bv;
function _dv(_Sd) {
return (_4v(_Sd) >> 16) & 0xff
}
var _ev = _dv;
function _fv(_9t, _at, _gv) {
var _ct = (_9t >> 16) & 0xff;
var _et = (_9t >> 8) & 0xff;
var _gt = _9t & 0xff;
var _dt = (_at >> 16) & 0xff;
var _ft = (_at >> 8) & 0xff;
var _ht = _at & 0xff;
var _hv = 1.0 - _gv;
var _T9 = ~~ (_ct * _hv + _dt * _gv);
var _jb = ~~ (_et * _hv + _ft * _gv);
var _W9 = ~~ (_gt * _hv + _ht * _gv);
return ((_T9 << 16) & 0xff0000) | ((_jb << 8) & 0xff00) | (_W9 & 0xff)
}
var _iv = _fv;
function _jv(_kv, _lv, _bt) {
var _5v = 0.0;
var _6v = 0.0;
var _7v = 0.0;
var _ja = 0.0;
var _la = 0.0;
var _8v = 0.0;
var _Mq = 0.0;
var _mv = 0.0;
var _fu = 0.0;
var _V9 = 0.0;
var _H3 = 0;
var _nv;
_ja = _kv * 360.0 / 255.0;
if (_ja == 360.0) _ja = 0.0;
_la = _lv / 255.0;
_8v = _bt / 255.0;
if (_la == 0) {
_5v = _8v;
_6v = _8v;
_7v = _8v
} else {
_ja = _ja / 60.0;
_H3 = Math.floor(_ja);
_Mq = _ja - _H3;
_mv = _8v * (1.0 - _la);
_fu = _8v * (1.0 - (_la * _Mq));
_V9 = _8v * (1.0 - (_la * (1.0 - _Mq)));
switch (_H3) {
case 0:
{
_5v = _8v;
_6v = _V9;
_7v = _mv
}
break;
case 1:
{
_5v = _fu;
_6v = _8v;
_7v = _mv
}
break;
case 2:
{
_5v = _mv;
_6v = _8v;
_7v = _V9
}
break;
case 3:
{
_5v = _mv;
_6v = _fu;
_7v = _8v
}
break;
case 4:
{
_5v = _V9;
_6v = _mv;
_7v = _8v
}
break;
default:
{
_5v = _8v;
_6v = _mv;
_7v = _fu
}
}
}
_nv = Math.floor(_5v * 255.0) | (Math.floor(_6v * 255.0) << 8) | (Math.floor(_7v * 255.0) << 16);
return _nv
}
var _ov = _jv;
function _pv(_Gd) {
if (_Gd < 0) {
_Gd = 0
}
if (_Gd > 1) {
_Gd = 1
}
_Ad = _Gd;
_qv = _Uj(_Bd, _Ad)
}
function _rv() {
return _Ad
}
function _sv() {
return _ps
}
var _tv = _sv;
function _Y6(_Cd) {
_ps = _Cd;
_Bd = _Dd(_Cd);
_uv = _vv(_Bd);
_qv = _Uj(_Bd, _Ad)
}
var _wv = _Y6;
function _xv(_aa, _ba, _x9, _y9, _9t, _at, _yv) {
_zv(_aa, _y9, _x9, _y9, 10, 10, _9t, _at, _yv)
}
var _Av = _xv;
var _zv = _Bv;
var _Cv = _Bv;
function _Bv(_aa, _ba, _x9, _y9, _Dv, _Ev, _9t, _at, _yv) {
if (_y9 < _ba) {
var _Fv = _ba;
_ba = _y9;
_y9 = _Fv
}
if (_x9 < _aa) {
var _Fv = _aa;
_aa = _x9;
_x9 = _Fv
}
var width = _x9 - _aa;
var height = _y9 - _ba;
_Gv = _Dv;
_Hv = _Ev;
var _1b = _yb.globalAlpha = _Ad;
_yb.beginPath();
_yb.moveTo(_aa + _Gv, _ba);
_yb.lineTo(_aa + width - _Gv, _ba);
_yb.quadraticCurveTo(_aa + width, _ba, _aa + width, _ba + _Hv);
_yb.lineTo(_aa + width, _ba + height - _Hv);
_yb.quadraticCurveTo(_aa + width, _ba + height, _aa + width - _Gv, _ba + height);
_yb.lineTo(_aa + _Gv, _ba + height);
_yb.quadraticCurveTo(_aa, _ba + height, _aa, _ba + height - _Hv);
_yb.lineTo(_aa, _ba + _Hv);
_yb.quadraticCurveTo(_aa, _ba, _aa + _Gv, _ba);
_yb.closePath();
if (_yv) {
_yb.strokeStyle = _Uj(_Dd(_9t), 1.0);
_yb.stroke()
} else {
_yb.fillStyle = _Uj(_Dd(_9t), 1.0);
_yb.fill()
}
}
var _Iv = _Jv;
function _Jv(_aa, _ba, _x9, _y9, _yv) {
_aa = ~~_aa;
_ba = ~~_ba;
_x9 = ~~_x9;
_y9 = ~~_y9;
_yb.globalAlpha = _Ad;
if (_yv) {
_yb.lineWidth = 1;
_yb.strokeStyle = _qv;
_yb._Kv(_aa + 0.5, _ba + 0.5, (_x9 - _aa), (_y9 - _ba))
} else {
_yb.fillStyle = _qv;
_yb._Lv(_aa, _ba, _x9 - _aa + 1, _y9 - _ba + 1)
}
}
var _Mv = _Nv;
var _Ov = _Nv;
function _Nv(_aa, _ba, _x9, _y9, _9t, _at, _Pv, _Qv, _yv) {
var _1b = _Uj(_Dd(_9t), 1.0);
_yb.globalAlpha = _Ad;
if (_yv) {
_yb.lineWidth = 1;
_yb.strokeStyle = _1b;
_yb._Kv(_aa + 0.5, _ba + 0.5, (_x9 - _aa), (_y9 - _ba))
} else {
_yb.fillStyle = _1b;
_yb._Lv(_aa + 0.5, _ba + 0.5, (_x9 - _aa), (_y9 - _ba))
}
}
var _Rv = _Sv;
function _Sv(_aa, _ba, _x9, _y9, _9t, _at, _Tv, _yv) {
_yb.globalAlpha = _Ad;
_yb.lineWidth = 1;
var _Uv = _Uj(_Dd(_9t), 1.0);
var _Vv = _Uj(_Dd(_at), 1.0);
var _Wv;
if (_Tv) {
_Wv = _yb.createLinearGradient(_aa, _ba, _aa, _y9)
} else {
_Wv = _yb.createLinearGradient(_aa, _ba, _x9, _ba)
}
_Wv.addColorStop(0, _Uv);
_Wv.addColorStop(1, _Vv);
if (_yv) {
_yb.strokeStyle = _Wv;
_yb._Kv(_aa + 0.5, _ba + 0.5, _x9 - _aa, _y9 - _ba)
} else {
_yb.fillStyle = _Wv;
_yb._Lv(_aa + 0.5, _ba + 0.5, _x9 - _aa, _y9 - _ba)
}
}
var _Xv = _Yv;
function _Yv(_V8, _W8) {
_yb.globalAlpha = _Ad;
_yb.fillStyle = _qv;
_yb._Lv(_V8, _W8, 1, 1)
}
function _Zv(_aa, _ba, _x9, _y9, _vh) {
_yb.globalAlpha = _Ad;
_yb.strokeStyle = _uv;
_yb.lineWidth = _vh;
_yb.__v();
_yb._0w(_aa + 0.5, _ba + 0.5);
_yb._1w(_x9 + 0.5, _y9 + 0.5);
_yb._2w();
_yb._3w();
_yb._Lv(_x9, _y9, 1, 1)
}
function _qb(_aa, _ba, _x9, _y9) {
_Zv(_aa, _ba, _x9, _y9, 1)
}
var _4w = _5w;
var _6w = _7w;
function _5w(_V8, _W8) {
return _5w(_V8, _W8) & 0x00ffffff
}
function _7w(_V8, _W8) {
var _8w = canvas.width / _9w;
var _aw = canvas.height / _bw;
var _1b = _cw(canvas, _V8 * _8w, _W8 * _aw);
return _1b
}
var _dw = _ew;
function _ew(_aa, _ba, _x9, _y9, _fw, _gw, _yv) {
_aa += 0.5;
_ba += 0.5;
_x9 += 0.5;
_y9 += 0.5;
_fw += 0.5;
_gw += 0.5;
_yb.globalAlpha = _Ad;
_yb.lineWidth = 1;
if (_yv) {
_yb.strokeStyle = _qv;
_yb.__v();
_yb._0w(_aa, _ba);
_yb._1w(_x9, _y9);
_yb._1w(_fw, _gw);
_yb._1w(_aa, _ba);
_yb._3w();
_yb._2w()
} else {
_yb.strokeStyle = _qv;
_yb.lineJoin = "bevel";
_yb.fillStyle = _qv;
_yb.__v();
_yb._0w(_aa, _ba);
_yb._1w(_x9, _y9);
_yb._1w(_fw, _gw);
_yb._1w(_aa, _ba);
_yb._hw();
_yb._3w();
_yb._2w();
_yb.lineJoin = "miter"
}
}
var _iw = _jw;
var _kw = _jw;
function _jw(_aa, _ba, _x9, _y9, _fw, _gw, _9t, _at, _Pv, _yv) {
var _Uv = _vv(_Dd(_9t) | 0xff000000);
_aa += 0.5;
_ba += 0.5;
_x9 += 0.5;
_y9 += 0.5;
_fw += 0.5;
_gw += 0.5;
_yb.globalAlpha = _Ad;
_yb.lineWidth = 1;
if (_yv) {
_yb.strokeStyle = _Uv;
_yb.__v();
_yb._0w(_aa, _ba);
_yb._1w(_x9, _y9);
_yb._1w(_fw, _gw);
_yb._1w(_aa, _ba);
_yb._3w();
_yb._2w()
} else {
_yb.strokeStyle = _Uv;
_yb.lineJoin = "bevel";
_yb.fillStyle = _Uv;
_yb.__v();
_yb._0w(_aa, _ba);
_yb._1w(_x9, _y9);
_yb._1w(_fw, _gw);
_yb._1w(_aa, _ba);
_yb._hw();
_yb._3w();
_yb._2w();
_yb.lineJoin = "miter"
}
}
var _lw = _mw;
function _mw(_aa, _ba, _x9, _y9, _gv, _nw, _ow, _pw, _qw, _rw, _sw, _tw) {
var _uw;
var _vw;
var _ww;
var _xw;
var _1b;
if (_sw) {
_Mv(_aa, _ba, _x9, _y9, _nw, _nw, _nw, _nw, !1);
if (_tw) {
_Mv(_aa, _ba, _x9, _y9, _yw, _yw, _yw, _yw, !0)
}
}
if (_gv < 0) {
_gv = 0
}
if (_gv > 100) {
_gv = 100
}
var _zw = _gv / 100;
switch (_rw) {
case 0:
_uw = _aa;
_ww = _ba;
_vw = _aa + _zw * (_x9 - _aa);
_xw = _y9;
break;
case 1:
_uw = _x9 - _zw * (_x9 - _aa);
_ww = _ba;
_vw = _x9;
_xw = _y9;
break;
case 2:
_uw = _aa;
_ww = _ba;
_vw = _x9;
_xw = _ba + _zw * (_y9 - _ba);
break;
case 3:
_uw = _aa;
_ww = _y9 - _zw * (_y9 - _ba);
_vw = _x9;
_xw = _y9;
break;
default:
_uw = _aa;
_ww = _ba;
_vw = _aa + _zw * (_x9 - _aa);
_xw = _y9;
break
}
if (_gv > 50) {
_1b = _8t(_pw, _qw, (_gv - 50.0) / 50.0);
} else {
_1b = _8t(_ow, _pw, _gv / 50.0)
}
_Mv(_uw, _ww, _vw, _xw, _1b, _1b, _1b, _1b, !1);
if (_tw) {
_Mv(_uw, _ww, _vw, _xw, _yw, _yw, _yw, _yw, !0)
}
}
var _Aw = _Bw;
function _Bw(_G9, _H9, _I9, _J9, _x3) {
var _Cw = Math.sqrt(((_I9 - _G9) * (_I9 - _G9)) + ((_J9 - _H9) * (_J9 - _H9)));
if (_Cw != 0) {
if (_x3 > _Cw) {
_x3 = _Cw;
}
var _0a = _x3 * (_I9 - _G9) / _Cw;
var _2a = _x3 * (_J9 - _H9) / _Cw;
_qb(_G9, _H9, _I9, _J9);
_dw(_I9 - _0a - _2a / 3.0, _J9 - _2a + _0a / 3.0, _I9, _J9, _I9 - _0a + _2a / 3.0, _J9 - _2a - _0a / 3.0, !1)
}
}
function _Dw(_aa, _ba, _x9, _y9, _yv) {
_Ew(_aa, _ba, _x9, _y9, _ps, _ps, _yv)
}
var _Ew = _Fw;
var _Gw = _Fw;
function _Fw(_f3, _g3, _G9, _H9, _9t, _at, _Hw) {
var _J3 = _G9 - _f3;
var _K3 = _H9 - _g3;
var _Iw = 0.5522848;
_Jw = (_J3 / 2) * _Iw,
_Kw = (_K3 / 2) * _Iw,
_Lw = _f3 + _J3,
_Mw = _g3 + _K3,
_Nw = _f3 + _J3 / 2,
_Ow = _g3 + _K3 / 2;
_yb.beginPath();
_yb.moveTo(_f3, _Ow);
_yb.bezierCurveTo(_f3, _Ow - _Kw, _Nw - _Jw, _g3, _Nw, _g3);
_yb.bezierCurveTo(_Nw + _Jw, _g3, _Lw, _Ow - _Kw, _Lw, _Ow);
_yb.bezierCurveTo(_Lw, _Ow + _Kw, _Nw + _Jw, _Mw, _Nw, _Mw);
_yb.bezierCurveTo(_Nw - _Jw, _Mw, _f3, _Ow + _Kw, _f3, _Ow);
_yb.closePath();
var _Uv = _Uj(_Dd(_9t), 1.0);
var _Vv = _Uj(_Dd(_at), 1.0);
if (_J3 <= 0) _J3 *= -1;
if (_K3 <= 0) _K3 *= -1;
var _Wv = _yb.createRadialGradient(_Nw, _Ow, 0, _Nw, _Ow, min(_J3 / 2, _K3 / 2));
_Wv.addColorStop(0, _Uv);
_Wv.addColorStop(1, _Vv);
_yb.globalAlpha = _Ad;
if (_Hw) {
_yb.lineWidth = 1;
_yb.strokeStyle = _Wv;
_yb.stroke()
} else {
_yb.fillStyle = _Wv;
_yb.fill()
}
}
var _Pw = _Qw;
var _Rw = _Qw;
function _Qw(_V8, _W8, _Sw, _9t, _at, _yv) {
_yb.globalAlpha = _Ad;
var _Uv = _Uj(_Dd(_9t), 1.0);
var _Vv = _Uj(_Dd(_at), 1.0);
var _Wv = _yb.createRadialGradient(_V8, _W8, 0, _V8, _W8, _Sw);
_Wv.addColorStop(0, _Uv);
_Wv.addColorStop(1, _Vv);
_yb.__v();
if (_yv) {
_yb.lineWidth = 1;
_yb.strokeStyle = _Wv;
_yb._Tw(_V8, _W8, _Sw, 0, Math.PI * 2, !0);
_yb._3w()
} else {
_yb.fillStyle = _Wv;
_yb._Tw(_V8, _W8, _Sw, 0, Math.PI * 2, !1);
_yb._hw()
}
_yb._2w()
}
var _Uw = _Vw;
var _Ww = _Vw;
function _Vw(_V8, _W8, _Sd) {
var _Uv = _Uj(_Dd(_Sd), 1.0);
_yb.globalAlpha = _Ad;
_yb.fillStyle = _Uv;
_yb._Lv(_V8, _W8, 1, 1)
}
var _Xw = _Yw;
var _Zw = _Yw;
function _Yw(_aa, _ba, _x9, _y9, _vh, _9t, _at) {
_yb.globalAlpha = _Ad;
var _Uv = _Uj(_Dd(_9t), 1.0);
var _Vv = _Uj(_Dd(_at), 1.0);
var _Wv = _yb.createLinearGradient(_aa, _ba, _x9, _y9);
_Wv.addColorStop(0, _Uv);
_Wv.addColorStop(1, _Vv);
_yb.strokeStyle = _Wv;
_yb.__v();
_yb._0w(_aa + 0.5, _ba + 0.5);
_yb._1w(_x9 + 0.5, _y9 + 0.5);
_yb.lineWidth = _vh;
_yb._3w();
_yb._2w()
}
function __w(_aa, _ba, _x9, _y9, _9t, _at) {
_Xw(_aa, _ba, _x9, _y9, 1, _9t, _at)
}
var _0x = __w;
function _1x(_f3, _g3, _G9, _H9, _Uv, _Vv, _Hw) {
_Ew(_f3, _g3, _G9, _H9, _Uv, _Vv, _Hw)
}
function _2x(_3x) {
switch (_3x) {
case 1:
_4x(_zu, _wu);
break;
case 2:
_4x(_zu, _yu);
break;
case 3:
_4x(_vu, _yu);
break;
default:
_4x(_zu, _Au);
break
}
}
var _4x = _5x;
function _5x(src, _6x) {
_nc("Blend modes only available in WebGL mode.")
}
var _7x = -1,
_8x = 0,
_9x = 1,
_ax = 2,
_bx = 3,
_cx = 4;
var _dx = -3,
_ex = -2,
_fx = -1,
_gx = 0,
_hx = 1,
_ix = 2;
var _jx = -2,
_kx = -1,
_lx = 0,
_mx = 1,
_nx = 2,
_ox = 3;
var _px = 0,
_qx = 1,
_rx = 2,
_sx = 3,
_tx = 4;
var _ux = -1,
_vx = 0;
var _wx = [];
var _xx = [];
var _yx = [];
var _zx = [];
var _Ax = _jx;
function _Bx() {
_Cx({
type: _px,
status: _ux
})
};
function _Dx() {
_Cx({
type: _tx,
_8j: 0
})
};
function _Ex() {
return - 1
}
function _Fx() {
return 0
}
function _Gx() {
return 0
};
function _Hx(_as) {
this._Ix = "";
this.title = "";
this.description = "";
this._Jx = "";
this.type = "";
this._Kx = _ex;
this._Lx = !1;
if ((_as != null) && (_as != undefined)) {
var id = _ki(_as, "id");
var title = _ki(_as, "title");
var description = _ki(_as, "description");
var _Jx = _ki(_as, "price");
var type = _ki(_as, "type");
if (id) {
this._Ix = id
}
if (title) {
this.title = title
}
if (description) {
this.description = description
}
if (_Jx) {
this._Jx = _Jx
}
if (type) {
this.type = type
}
}
};
function _Mx() {
this._Nx = "";
this._Ix = "";
this._Ox = "";
this._Px = "";
this._Qx = "";
this._Rx = 0;
this._Sx = 0;
this._Kx = _ex
};
function _Tx(_Ux) {
switch (_Ux.type) {
case _8x:
{
_Ax = _lx;
_Bx(_wx)
}
break;
case _9x:
{
_Ax = _ox;
_Dx()
}
break;
case _ax:
{
_Ax = _nx;
_Ex(_Ux.product, _Ux._Vx)
}
break;
case _bx:
{
_Ax = _nx;
_Fx(_Ux.product)
}
break;
case _cx:
{
_Ax = _nx;
_Gx(_Ux.product)
}
break;
default:
{
_Ax = _mx
}
break
}
}
function _Cx(_fr) {
_yx.push(_fr)
}
function _Wx(_fr) {
_fr.map = _9i();
_ji(_fr.map, "type", _px);
_ji(_fr.map, "status", _fr.status)
}
function _Xx(_fr) {
_fr.map = _9i();
_ji(_fr.map, "type", _tx);
_ji(_fr.map, "result", _fr._8j)
}
function _Yx(_fr) {
var product = null;
var _Zx = -1;
var __x = JSON.parse(_fr._0y);
_Zx = _1y(__x["productId"]);
if (_Zx < 0) {
product = new _Hx();
product._Ix = __x["productId"];
_wx.push(product);
_Zx = _wx.length - 1
} else {
product = _wx[_Zx]
}
product._Lx = !0;
product._Kx = _fx;
if (__x["title"]) {
product.title = __x["title"]
}
if (__x["price"]) {
product._Jx = __x["price"]
}
if (__x["type"]) {}
if (__x["description"]) {
product.description = __x["description"]
}
if (__x["price_currency_code"]) {}
_fr.map = _9i();
_ji(_fr.map, "type", _qx);
_ji(_fr.map, "product", product._Ix);
_ji(_fr.map, "index", _Zx)
}
function _2y(_fr) {
var __x = JSON.parse(_fr._0y);
var _Vx = -1;
if ((__x["purchaseIndex"] != null) && (__x["purchaseIndex"] != undefined)) {
_Vx = __x["purchaseIndex"]
}
var _3y = null;
if (_Vx != -1) {
_3y = _xx[_Vx]
} else {
_3y = new _Mx();
_xx.push(_3y);
_Vx = _xx.length - 1
}
if (__x["orderId"]) {
_3y._Nx = __x["orderId"]
}
if (__x["productId"]) {
_3y._Ix = __x["productId"]
}
if (__x["purchaseTime"]) {
_3y._Sx = __x["purchaseTime"]
}
if ((__x["purchaseState"] != null) && (__x["purchaseState"] != undefined)) {
_3y._Kx = __x["purchaseState"]
}
if (__x["purchaseToken"]) {
_3y._Px = __x["purchaseToken"]
}
if (__x["response"]) {
_3y._Rx = __x["response"]
}
if (__x["receipt"]) {
_3y._Ox = __x["receipt"]
}
_fr.map = _9i();
_ji(_fr.map, "type", _rx);
_ji(_fr.map, "index", _Vx);
_ji(_fr.map, "response", _3y._Rx)
}
function _4y(_fr) {
var __x = JSON.parse(_fr._0y);
var _5y = null;
var _Px = null;
var _6y = 0.0;
if (__x["productId"]) {
_5y = __x["productId"]
}
if (__x["token"]) {
_Px = __x["token"]
}
if (__x["consumed"]) {
if (typeof(__x["consumed"]) == "string") {
_6y = (__x["consumed"] == "false") ? 0.0 : 1.0
} else {
_6y = __x["consumed"]
}
}
if ((_5y != null) && (_6y == !0)) {
for (var _C9 = 0; _C9 < _xx.length; _C9++) {
var _3y = _xx[_C9];
if ((_3y._5y == _5y) && (_3y._Px == _Px)) {
_xx[_C9] = null
}
}
}
_fr.map = _9i();
_ji(_fr.map, "type", _sx);
_ji(_fr.map, "product", _5y);
_ji(_fr.map, "consumed", _6y ? 1.0 : 0.0)
}
function _7y(_fr) {
var _8y = !1;
if ((_fr.type != null) && (_fr.type != undefined)) {
switch (_fr.type) {
case _px:
{
_Wx(_fr);
if (_fr.status == _vx) {
_Ax = _mx;
_8y = !0
} else {
_Ax = _kx
}
}
break;
case _qx:
{
_Yx(_fr);
if (_Ax != _lx) {
_Ax = _mx;
_8y = !0
}
}
break;
case _rx:
{
_2y(_fr);
if ((_Ax != _lx) && (_Ax != _ox)) {
_Ax = _mx;
_8y = !0
}
}
break;
case _sx:
{
_4y(_fr);
_Ax = _mx;
_8y = !0
}
break;
case _tx:
{
_Xx(_fr);
_Ax = _mx;
_8y = !0
}
break
}
}
if (_8y && (_zx.length != 0)) {
var _9y = _zx.shift();
_Tx(_9y)
}
}
function _ay() {
while (_yx.length > 0) {
var _by = _yx.shift();
_7y(_by);
_w6._cy = _by.map;
_dy._g9(_ey, 0);
_ci(_by.map)
}
}
function _1y(_fy) {
var _gy = -1;
if (typeof(_fy) == "string") {
for (var _C9 = 0; _C9 < _wx.length; _C9++) {
var product = _wx[_C9];
if (product._Ix.toLowerCase() == _fy.toLowerCase()) {
_gy = _C9;
break
}
}
} else {
_gy = ~~_fy
}
return _gy
}
var _hy = null;
function _07(_iy) {
if (_hy) {
_37()
}
var _jy = null;
if (_ky) {
_jy = _ly(_iy, !0)
}
if (_jy == null) {
_jy = _ly(_iy, !1)
}
if (_jy == null) {
_jy = new _my(_iy)
}
_hy = _jy
}
function _37() {
if (!_hy) return;
var _0t = _hy._ny();
_hy = null;
return _0t
}
function _27(_oy, _ii, _py) {
if (!_hy) return _py;
return _hy._qy(_oy, _ii, _py)
}
function _P7(_oy, _ii, _bt) {
if (!_hy) return ! 1;
_hy._ry(_oy, _ii, "" + _sy(_bt));
return ! 0
}
function _67(_7i) {
var _ty = _j7(_7i);
if (_ty == null) return 0;
var _Ea = 0;
for (var _H3 = 0; _H3 < _ty.length; _H3++) {
if (!_ty[_H3]._uy) _Ea++
}
return _Ea
}
function _vy(_lt, _V8, _W8, _7i) {
var _0a = _lt._f3;
var _2a = _lt._g3;
_lt._te(_V8, _W8);
var id = _wy(null, Math.floor(_7i), !1, _xy, _V8, _W8,
function(_yy) {
if (_yy._zy(_lt, !0)) {
return _yy.id
} else {
return _xy
}
});
_lt._te(_0a, _2a);
return id
}
function _Z6(_V8, _W8, _7i) {
var _4s = _Ys._Gh(_7i);
if (!_4s) {
_Xg("Error: Trying to create an instance using non-existent object type (" + _7i + ")");
return _xy
}
var _Ay = _H8.__i(_V8, _W8, _7i);
_Ay._g9(_0j, 0, _Ay, _Ay);
return _Ay.id
}
function _n7(_lt) {
_lt._g9(_By, 0, _lt, _lt);
_lt._uy = !0
}
function _Cy(_Ti, _V8, _W8) {
var bottom, top;
var _Dy = [];
var _Ey = _H8._Fy;
for (var _H3 = 0; _H3 < _Ey._3i.length; _H3++) {
var _Ay = _Ey._3i[_H3];
if (_Ay._Gy) _Ay._Hy();
var _Iy = _Ay._Iy;
if (! ((_V8 > _Iy._q9) || (_V8 < _Iy.left) || (_W8 > _Iy.bottom) || (_W8 < _Iy.top))) {
_Dy[_Dy.length] = _Ay
}
}
var _Ey = _H8._Fy;
for (var _H3 = 0; _H3 < _Dy.length; _H3++) {
_n7(_Dy[_H3])
}
}
function _Jy(_Ti, _Ky, _Ly) {
if (_Ly) _Ti._g9(_By, 0, _Ti, _Ti);
_Ti._My(_Ky, !0, !1);
_Ti._Ny = _Ti._Oy._Py;
var _Qy = _Ry._Gh(_Ti._Ny);
if (_Qy) {
_Ti._Iy.left = _Qy._Iy.left;
_Ti._Iy._q9 = _Qy._Iy._q9;
_Ti._Iy.top = _Qy._Iy.top;
_Ti._Iy.bottom = _Qy._Iy.bottom
}
_Ti._Sy(_H8);
if (_Ly) _Ti._g9(_0j, 0, _Ti, _Ti)
}
function _Ty(_Ti, _Ky, _Ly) {
if (!_Ys._Uy(_Ky)) {
debug("Error: Trying to change an instance to an nonexistent object type.");
return
}
_Jy(_Ti, _Ky, _Ly)
}
var _Vy = _Ty;
function _Wy(_7i, _Xy) {
if (_7i._Yy >= 0) {
var _Zy = _Ys._Gh(_7i._Yy);
if (_Zy) {
if (_Zy.__y == _Xy) {
return ! 0
} else {
return _Wy(_Zy, _Xy)
}
}
}
return ! 1
};
function _0z(_ii) {
if (_1z[_ii]) {
return
}
_1z[_ii] = 1;
_2z[_ii] = 1;
_3z = _ii
}
function _4z(_ii) {
_5z[_ii] = 1;
_1z[_ii] = 0
}
function _6z(_7z) {
with(_dh) {
switch (_7z) {
case 0:
if (_nf[0] || _nf[1] || _nf[2]) return 0;
else return 1;
case 1:
if (_nf[0]) return 1;
else return 0;
case 2:
if (_nf[1]) return 1;
else return 0;
case 3:
if (_nf[2]) return 1;
else return 0;
case - 1 : if (_nf[0] || _nf[1] || _nf[2]) return 1;
else return 0
}
}
return 0;
}
function _8z(_7z) {
with(_dh) {
switch (_7z) {
case 0:
if (_if[0] || _if[1] || _if[2]) return 0;
else return 1;
case 1:
if (_if[0]) return 1;
else return 0;
case 2:
if (_if[1]) return 1;
else return 0;
case 3:
if (_if[2]) return 1;
else return 0;
case - 1 : if (_if[0] || _if[1] || _if[2]) return 1;
else return 0
}
}
return 0
}
function _9z(_7z) {
with(_dh) {
switch (_7z) {
case 0:
if (_mf[0] || _mf[1] || _mf[2]) return 0;
else return 1;
case 1:
if (_mf[0]) return 1;
else return 0;
case 2:
if (_mf[1]) return 1;
else return 0;
case 3:
if (_mf[2]) return 1;
else return 0;
case - 1 : if (_mf[0] || _mf[1] || _mf[2]) return 1;
else return 0
}
return 0
}
}
function _az(_bz, _cz) {
if (_bz.readyState != 4) return;
var _Qr = _oq(_bz);
if (_Qr) {
_Qr._dz = _bz.status;
_Qr._pq = !0;
if (_bz.status != 200) {
_Qr._qq = _vq;
_Qr._ez = "";
return
}
_Qr._qq = _rq;
try {
_Qr._ez = _bz.responseText
} catch(e) {
_Qr._ez = ""
}
_Qr._fz = _9i();
var _gz = _bz.getAllResponseHeaders().split("\r\n");
for (var _C9 in _gz) {
var _hz = _gz[_C9].split(": ");
if (_hz.length == 2) {
_ji(_Qr._fz, _hz[0], _hz[1])
}
}
if (_cz) {
_cz(_bz, _Qr)
}
}
}
function _iz(_fr, _bz) {
var _Qr = _oq(_bz);
if (_Qr) {
_Qr._pq = !0;
_Qr._qq = _rq;
_Qr._ez = _bz.responseText;
_Qr._dz = 200;
_Qr._fz = -1
}
}
function _jz(_fr, _bz) {
var _Qr = _oq(_bz);
if (_Qr) {
_Qr._pq = !0;
_Qr._qq = _vq;
_Qr._ez = "";
_Qr._dz = 404;
_Qr._fz = -1
}
}
function _kz(_ce, _lz, _mz, _nz, _bz, _oz, _cz) {
_bz.open(_ce, _lz);
_bz.ontimeout = function(_fr) {
_jz(_fr, _bz)
};
_bz.onerror = function(_fr) {
_jz(_fr, _bz)
};
if (_oz) {
_bz.onload = function(_fr) {
_iz(_fr, _bz)
}
} else {
_bz.onload = function(_fr) {};
_bz.onreadystatechange = function() {
if (_bz.readyState == 4 && _bz.status == 200) {
_iz(null, _bz)
}
}
}
if (_mz !== null) {
for (var _hz in _mz) {
if (!_mz.hasOwnProperty(_hz)) continue;
try {
_bz.setRequestHeader(_mz[_hz]._pz, _mz[_hz].value)
} catch(e) {
debug("Unable to set request header " + _mz[_hz]._pz + ":" + _mz[_hz].value + " " + e.message)
}
}
}
_bz._qz = function() {};
_bz.send(_nz)
}
function _rz(_ce, _lz, _mz, _nz, _bz, _cz) {
_bz.open(_ce, _lz, !0);
if (_mz !== null) {
for (var _hz in _mz) {
if (!_mz.hasOwnProperty(_hz)) continue;
try {
_bz.setRequestHeader(_mz[_hz]._pz, _mz[_hz].value)
} catch(e) {
debug("Unable to set request header " + _mz[_hz]._pz + ":" + _mz[_hz].value + " " + e.message);
}
}
} else if (_ce == "POST") {
_bz.setRequestHeader("Content-Type", "application/x-www-form-urlencoded")
}
_bz.onreadystatechange = function() {
_az(_bz, _cz)
};
_bz.send(_nz)
}
function _sz(_lz, _mz) {
var _tz = {
_uz: null,
_vz: !0,
_wz: !1
};
if ((_lz.substring(0, 7) != "http://") && (_lz.substring(0, 8) != "https://")) {
_tz._vz = !1
} else {
var _xz = "";
if (_lz.substring(0, 7) == "http://") {
_xz = _lz.substring(7, _lz.length - 7)
}
if (_lz.substring(0, 8) == "https://") {
_xz = _lz.substring(8, _lz.length - 7)
}
if (_mz !== null) {
_tz._vz = !1
}
if (_xz.substring(0, document.domain.length) == document.domain) {
_tz._vz = !1
}
}
if ((_tz._vz) && (window.XDomainRequest)) {
_tz._uz = new XDomainRequest();
_tz._vz = !0;
_tz._wz = !0
} else {
if (window.XMLHttpRequest) {
_tz._uz = new XMLHttpRequest();
_tz._vz = !1;
_tz._wz = (_yz == _zz)
} else if (window.ActiveXObject) {
if (new ActiveXObject("Microsoft.XMLHTTP")) {
_tz._uz = new ActiveXObject("Microsoft.XMLHTTP")
} else {
_tz._uz = new ActiveXObject("Msxml2.XMLHTTP")
}
}
}
return _tz
}
function _Az(_ce, _lz, _mz, _nz, _Bz, _Cz, _cz) {
try {
var _tz = _sz(_lz, _mz);
if (_Bz) {
_xq._Wh(_Dz, _lz, _Ez, _tz._uz)
}
if (_Cz !== undefined) {
_tz._uz.responseType = _Cz
}
if (_tz._wz) {
_kz(_ce, _lz, _mz, _nz, _tz._uz, _tz._vz, _cz)
} else {
_rz(_ce, _lz, _mz, _nz, _tz._uz, _cz)
}
} catch(e) {
return - 1
}
return _Dz++
}
var _Fz = 0x7fff;
var floor = Math.floor;
function _Gz(_Hz) {
var _H3 = _Hz & 0xffffffff;
var _Mq = _Hz - _H3;
if ((_H3 & 1) == 1) {
if (_Mq >= 0.5) {
return _H3 + 1
} else {
return _H3
}
} else {
if (_Mq <= 0.5) {
return _H3
} else {
return _H3 + 1
}
}
}
var round = _Gz;
var _Xi = _Gz;
var abs = Math.abs;
function cos(_Hz) {
var _V8 = Math.cos(_Hz);
var _V9 = ~~ (_V8 * 0x1000000);
_V8 = _V9 / 0x1000000;
return _V8
}
function sin(_Hz) {
var _V8 = Math.sin(_Hz);
var _V9 = ~~ (_V8 * 0x1000000);
_V8 = _V9 / 0x1000000;
return _V8
}
function tan(_Hz) {
var _V8 = Math.tan(_Hz);
var _V9 = ~~ (_V8 * 0x1000000);
_V8 = _V9 / 0x1000000;
return _V8
}
function _Iz(_aa, _ba, _x9, _y9) {
var _f3 = _x9 - _aa;
var _g3 = _y9 - _ba;
if (_f3 === 0) {
if (_g3 > 0) return 270.0;
else if (_g3 < 0) return 90.0;
else return 0.0
} else {
var _Cw = 180.0 * Math.atan2(_g3, _f3) / _Y9;
_Cw = (~~round(_Cw * 1000000)) / 1000000.0;
if (_Cw <= 0.0) {
return - _Cw
} else {
return (360.0 - _Cw)
}
}
return _nv
}
function _Jz(_aa, _ba, _x9, _y9) {
return _Iz(_aa, _ba, _x9, _y9)
}
function _U9(_Hz, _Kz) {
if (_Hz < _Kz) return _Hz;
else return _Kz
}
function _S9(_Hz, _Kz) {
if (_Hz > _Kz) return _Hz;
else return _Kz
}
var max = Math.max;
var min = Math.min;
var _Lz = [];
var index = 0;
var _Mz = _Nz(0);
function _Nz(_Oz) {
var _9q = _Oz;
for (_H3 = 0; _H3 < 16; _H3++) {
_9q = (((_9q * 214013 + 2531011) >> 16) & _Fz) | 0;
_Lz[_H3] = ~~_9q
}
index = 0;
_Mz = _Oz;
return _Mz
}
function _Pz() {
var _kb, _W9, _I3, _mk;
_kb = _Lz[index];
_I3 = _Lz[(index + 13) & 15];
_W9 = _kb ^ _I3 ^ (_kb << 16) ^ (_I3 << 15);
_I3 = _Lz[(index + 9) & 15];
_I3 ^= (_I3 >> 11);
_kb = _Lz[index] = _W9 ^ _I3;
_mk = _kb ^ ((_kb << 5) & 0xDA442D20);
index = (index + 15) & 15;
_kb = _Lz[index];
_Lz[index] = _kb ^ _W9 ^ _mk ^ (_kb << 2) ^ (_W9 << 18) ^ (_I3 << 28);
return ((_Lz[index] & 0x7fffffff) / 2147483647.0)
}
function random(_Fd) {
var _T9 = _Pz();
return _T9 * _Fd
}
function _87(_Qz, _Rz) {
if (_Qz == _Rz) {
return _Qz
}
var _Sz, _Tz;
if (_Qz > _Rz) {
_Sz = _Rz;
_Tz = _Qz
} else {
_Sz = _Qz;
_Tz = _Rz
}
var _Uz = _Pz();
_8j = _Sz + (_Uz * (_Tz - _Sz));
_Pz();
return _8j
}
function _57() {
var __h = _57.arguments;
var _0i = _57.arguments.length;
var index = Math.floor(random(_0i));
return __h[index]
}
function _vf(_V8) {
if (_V8 == 0) return 0;
if (_V8 < 0) return - 1;
return 1
}
var ceil = Math.ceil;
function _Vz(_V8) {
return _V8 - ~~_V8
}
function sqrt(_V8) {
if (_V8 >= 0) return Math.sqrt(_V8);
else _Xg("Cannot apply sqrt to negative number.")
}
function _ka(_V8) {
return _V8 * _V8
}
var _Wz = Math.pow;
var exp = Math.exp;
var _Xz = Math.log;
var _Yz = Math.asin;
var _Zz = Math.acos;
var __z = Math.atan;
var _0A = Math.atan2;
function _1A() {
var __h = _1A.arguments;
var _0i = _1A.arguments.length;
var _F9 = __h[0];
for (var _H3 = 1; _H3 < _0i; _H3++) {
_F9 += __h[_H3]
}
return (_F9 / _0i)
}
function _2A() {
var arguments = _2A.arguments;
if (arguments.length == 0) {
return 0
}
var _H3, __9, _8j;
for (_H3 = 0; _H3 < arguments.length; _H3++) {
var _3A = 0;
var _4A = 0;
for (__9 = 0; __9 < arguments.length; __9++) {
if (arguments[__9] < arguments[_H3]) {
_3A = _3A + 1
}
if (arguments[__9] <= arguments[_H3]) {
_4A = _4A + 1
}
}
if ((_3A < (arguments.length / 2)) && (_4A >= (arguments.length / 2))) {
return arguments[_H3]
}
}
debug("Error: was not able to successfully find the median value");
return 0
}
var _5A = 30,
_6A = 10,
_7A = 3,
_8A = !0;
function _9A(_aA, _bA) {
var _nv = 0.0;
while (_aA <= 0.0) {
_aA = _aA + 360
}
while (_aA >= 360.0) {
_aA = _aA - 360
}
while (_bA < 0.0) {
_bA = _bA + 360
}
while (_bA >= 360.) {
_bA = _bA - 360
}
_nv = _bA - _aA;
if (_nv < 0) {
_nv = -_nv
}
if (_nv > 180) {
_nv = 360 - _nv
}
return _nv
}
function _cA(_lt, _V8, _W8, _dA, _eA) {
if (_dA == _fA) {
if (_eA) {
return _gA(_lt, _V8, _W8)
} else {
return _hA(_lt, _V8, _W8)
}
} else {
return (_vy(_lt, _V8, _W8, _dA) == _xy)
}
}
function _iA(_lt, _V8, _W8, _jA, _dA, _eA) {
var _nv = !1;
var _kA = 0.0;
var _lA = 0.0;
var _mA = 0.0;
if ((_lt._f3 == _V8) && (_lt._g3 == _W8)) return ! 0;
_kA = sqrt(_do(_lt._f3 - _V8) + _do(_lt._g3 - _W8));
if (_kA <= _jA) {
_lA = _V8;
_mA = _W8;
_nv = !0
} else {
_lA = _lt._f3 + _jA * (_V8 - _lt._f3) / _kA;
_mA = _lt._g3 + _jA * (_W8 - _lt._g3) / _kA;
_nv = !1
}
if (!_cA(_lt, _lA, _mA, _dA, _eA)) {
return _nv
}
_lt._o7(_Iz(_lt._f3, _lt._g3, _lA, _mA));
_lt._te(_lA, _mA);
return _nv
}
function _nA(_lt, _V8, _W8, _jA, _eA) {
return _iA(_lt, _V8, _W8, _jA, _fA, _eA);
}
function _oA(_pA, _lt, _Ui, _dA, _eA) {
var _nv = !1;
var _qA = 0.0;
var _rA = 0.0;
if (_9A(_pA, _lt._sA) > _5A) {
return _nv
}
_qA = _lt._f3 + _Ui * _7A * cos(_Y9 * _pA / 180);
_rA = _lt._g3 - _Ui * _7A * sin(_Y9 * _pA / 180);
if (!0 != _cA(_lt, _qA, _rA, _dA, _eA)) {
return _nv
}
_qA = _lt._f3 + _Ui * cos(_Y9 * _pA / 180);
_rA = _lt._g3 - _Ui * sin(_Y9 * _pA / 180);
if (!0 != _cA(_lt, _qA, _rA, _dA, _eA)) {
return _nv
}
_lt._o7(_pA);
_lt._te(_qA, _rA);
_nv = !0;
return _nv
}
function _tA(_lt, _V8, _W8, _jA, _Ky, _eA) {
var _nv = !1;
var _kA = 0.0;
var _uA = 0.0;
var _vA = 0.0;
if ((_lt._f3 == _V8) && (_lt._g3 == _W8)) {
_nv = !0;
return _nv
}
_kA = sqrt(_do(_lt._f3 - _V8) + _do(_lt._g3 - _W8));
if (_kA <= _jA) {
if (_cA(_lt, _V8, _W8, _Ky, _eA)) {
_lt._o7(_Jz(_lt._f3, _lt._g3, _V8, _W8));
_lt._te(_V8, _W8)
}
_nv = !0;
return _nv
}
_uA = _Jz(_lt._f3, _lt._g3, _V8, _W8);
_vA = 0;
_nv = !1;
while (_vA < 180) {
if (_oA(_uA - _vA, _lt, _jA, _Ky, _eA)) {
return _nv
}
if (_oA(_uA + _vA, _lt, _jA, _Ky, _eA)) {
return _nv
}
_vA = _vA + _6A
}
if (_8A) {
_lt._o7(_lt._sA + _5A)
}
return _nv
}
function _wA(_lt, _V8, _W8, _jA, _eA) {
return _tA(_lt, _V8, _W8, _jA, _fA, _eA)
}
function _xA(_yA, _zA, _AA, _BA, _CA, _DA) {
this._EA = _yA;
this._FA = _zA;
this._GA = ~~_AA;
this._HA = ~~_BA;
this._IA = _CA;
this._JA = _DA;
this._KA = [];
this._zg()
};
_xA.prototype._zg = function() {
var _LA = this._GA * this._HA;
for (var _H3 = 0; _H3 < _LA; _H3++) {
this._KA[_H3] = 0
}
};
var _MA = _NA;
function _NA(_Ch) {
var _OA = _PA._Gh(_Ch);
if (_OA) {
_yb.globalAlpha = _Ad;
var _xk = _Uj(0xff0000, 1.0);
var _yk = _Uj(0x00ff00, 1.0);
for (var _f3 = 0; _f3 < _OA._GA; _f3++) {
for (var _g3 = 0; _g3 < _OA._HA; _g3++) {
var _1b = _yk;
if (_OA._KA[_f3 * _OA._HA + _g3] < 0) {
_1b = _xk
}
_yb.fillStyle = _1b;
_yb._Lv((_OA._EA + _f3 * _OA._IA), (_OA._FA + _g3 * _OA._JA), _OA._IA, _OA._JA)
}
}
return
}
_Xg("Error: invalid mp_grid ID (mp_grid_draw)")
}
function _hA(_lt, _V8, _W8) {
var _0a, _2a, _nv, _QA;
_nv = !0;
_0a = _lt._f3;
_2a = _lt._g3;
_lt._te(_V8, _W8);
var _3i = _H8._RA();
for (var _Zi = 0; _Zi < _3i.length; _Zi++) {
_QA = _3i[_Zi];
if (_QA._SA) {
if (_lt._zy(_QA, !0)) {
_nv = !1;
break
}
}
}
_lt._te(_0a, _2a);
return _nv
}
function _gA(_lt, _V8, _W8) {
var _0a, _2a, _nv, _QA;
_nv = !0;
_0a = _lt._f3;
_2a = _lt._g3;
_lt._te(_V8, _W8);
var _3i = _H8._RA();
for (var _Zi = 0; _Zi < _3i.length; _Zi++) {
_QA = _3i[_Zi];
if (_lt._zy(_QA, !0)) {
_nv = !1;
break
}
}
_lt._te(_0a, _2a);
return _nv
}
function _TA(_lt, _V8, _W8, _7i) {
var _0a, _2a, _nv, _QA;
_nv = !1;
_0a = _lt._f3;
_2a = _lt._g3;
_lt._te(_V8, _W8);
var _3i = _j7(_7i);
for (var _Zi = 0; _Zi < _3i.length; _Zi++) {
_QA = _3i[_Zi];
if (_lt._zy(_QA, !0)) {
_nv = !0;
break
}
}
_lt._te(_0a, _2a);
return _nv
}
function _UA(_lt, _V8, _W8, _Ui) {
_lt._E7(_V8 - _lt._f3);
_lt._F7(_W8 - _lt._g3);
_lt._p7(_Ui)
}
function _VA(_lt, _V8, _W8, _WA) {
if (_WA) {
return _gA(_lt, _V8, _W8)
} else {
return _hA(_lt, _V8, _W8)
}
}
function _XA(_Ti, _V8, _W8, _WA) {
if (_WA) return _gA(_Ti, _V8, _W8);
else return _hA(_Ti, _V8, _W8)
}
function _Yi(_U8) {
if (!_Ys._Gh(_U8)) return ! 1;
return ! 0
}
var _YA = _mj;
var _ZA = __A;
var _0B = _1B;
var _2B = _3B;
var _4B = _5B;
var _6B = _7B;
var _8B = _9B;
var _aB = _bB;
var _cB = _dB;
var _eB = _fB;
var _gB = _hB;
var _iB = _jB;
var _kB = _lB;
var _mB = _lB;
var _nB = _oB;
var _pB = _qB;
var _rB = _nj;
var _sB = _tB;
var _uB = _vB;
var _wB = _xB;
var _yB = _zB;
var _AB = _BB;
var _CB = _DB;
var _EB = _FB;
var _GB = _HB;
var _IB = _JB;
var _KB = _JB;
var _LB = _qj;
var _MB = _qj;
var _NB = _OB;
var _PB = _OB;
var _QB = _OB;
var _RB = _OB;
var _SB = _pj;
var _TB = _pj;
var _UB = _VB;
var _WB = _VB;
var _XB = _YB;
var _ZB = _YB;
var __B = _0C;
var _1C = _rj;
var _2C = _3C;
var _4C = _5C;
var _6C = _7C;
var _8C = _9C;
var _aC = _bC;
var _cC = _dC;
var _eC = _fC;
var _gC = _hC;
var _iC = _jC;
var _kC = _lC;
var _mC = _nC;
var _oC = _pC;
var _qC = _rC;
var _sC = _tC;
var _uC = _vC;
var _wC = _xC;
function _A7(_Ti, _tj, _Ui, _yC, _zC) {
_Ti._wj(_tj, _Ui, 1, 0, _zC, _yC)
}
function _AC(_Ti) {
_Ti._wj( - 1, 0, 1, 0, !1, 0)
}
var _BC = _CC;
function _CC(_Ch, _DC, _EC, _zC) {
var _FC = _GC._a3[_Ch];
if (!_FC) return;
_yb.globalAlpha = _Ad;
_yb.strokeStyle = _qv;
var _0a, _2a, _jr;
var _HC = 0;
var _IC = _FC._JC(0);
if (!_zC) {
_DC = _DC - _IC._f3;
_EC = _EC - _IC._g3
} else {
_DC = 0;
_EC = 0
}
_HC = _Xi(_FC.length / 4.0);
if (_HC == 0) return;
var _z3 = !0;
_yb.__v();
for (var _H3 = 0; _H3 <= _HC; _H3++) {
_IC = _FC._JC(_H3 / _HC);
if (_z3) {
_yb._0w(_DC + _IC._f3, _EC + _IC._g3);
_z3 = !1
} else {
_yb._1w(_DC + _IC._f3, _EC + _IC._g3)
}
}
_yb._3w();
_yb._2w()
}
var _KC = new _LC();
var _MC = new _LC();
var _NC = new _LC();
function _OC() {
var _PC = _KC._Wh(new _QC(_PC));
return _PC
}
function _RC(_SC) {
var _TC = _KC._Gh(_SC);
_TC._UC()
}
function _VC(_SC, _WC) {
var _TC = _KC._Gh(_SC);
_TC._XC(_WC)
}
function _YC(_SC, _ZC) {
var _TC = _KC._Gh(_SC);
_TC.__C(_ZC)
}
function _0D(_SC, _1D) {
var _TC = _KC._Gh(_SC);
_TC._2D(_1D)
}
function _3D(_SC, _4D) {
var _TC = _KC._Gh(_SC);
_TC._5D(_4D)
}
function _6D(_SC, _7D) {
var _TC = _KC._Gh(_SC);
_TC._8D((_7D > 0.5) ? !0 : !1)
}
function _9D(_SC, _aD) {
var _TC = _KC._Gh(_SC);
_TC._bD(_aD)
}
function _cD(_SC, _aD) {
var _TC = _KC._Gh(_SC);
_TC._dD(_aD)
}
function _eD(_SC, _fD) {
var _TC = _KC._Gh(_SC);
_TC._gD(_fD)
}
function _hD(_SC, _iD) {
var _TC = _KC._Gh(_SC);
_TC._jD(_iD * _H8._kD._lD)
}
function _mD(_SC) {
var _TC = _KC._Gh(_SC);
_TC._nD()
}
function _oD(_SC, _pD, _qD) {
var _TC = _KC._Gh(_SC);
var scale = _H8._kD._lD;
_TC._rD(_pD * scale, _qD * scale);
}
function _sD(_Ti, _SC, _Ch, _tD, _uD) {
var _vD = -1;
var _TC = _KC._Gh(_SC);
var _7i = Math.floor(_Ch);
if (_7i == _wD) {
_7i = _Ti.id
}
if (_7i == _fA) {
var _3i = _dy._RA();
for (var _Zi = 0; _Zi < _3i.length; _Zi++) {
var _Ay = _3i[_Zi];
if (_Ay._xD) continue;
_vD = _H8._kD._yD(_TC, _Ay, _tD, _uD)
}
} else if (_7i < 100000) {
var _li = _Ys._Gh(_7i);
if (_li === null) {
return _zD
}
var _3i = _li._AD();
for (var _Zi = 0; _Zi < _3i.length; _Zi++) {
var _Ay = _3i[_Zi];
if (_Ay._xD) continue;
_vD = _H8._kD._yD(_TC, _Ay, _tD, _uD)
}
} else {
var _Ay = _dy._Gh(_7i);
_vD = _H8._kD._yD(_TC, _Ay, _tD, _uD)
}
return _vD
}
function _BD(_Ti, _SC, _Ch) {
return _sD(_Ti, _SC, _Ch, 0.0, 0.0)
}
function _CD(_U8, _Cd, _DD) {
var _ED = _FD._Gh(_U8);
if (_ED === null) return;
var _GD = _ED._HD;
_GD._b5 = _Cd;
_GD._k5 = _DD
}
var _ID = _CD;
function _b8() {
if ((_H8._JD + 1) >= _FD._KD.length) return;
_LD = _FD._MD(_H8._JD + 1).id
}
function _cj() {
_LD = _H8.id
}
function _S6(_ND) {
var _OD = _FD._Gh(_ND);
if ((_OD == null) || (_OD == undefined)) {
_Zp("Error: Room " + _ND + " is not a valid room index")
} else {
_LD = _ND
}
}
function _PD() {
_S6(_QD)
}
var _RD = function() {
_nc("yy_texture_get_texel_width()")
};
var _SD = function() {
_nc("yy_texture_get_texel_height()");
};
var _TD = function() {
_nc("texture_set_stage()")
};
var _UD = function() {
_nc("shader_is_compiled()")
};
var _VD = function() {
_nc("shader_set()")
};
var _WD = function() {
_nc("shader_get_uniform()")
};
var _XD = function() {
_nc("shader_set_uniform_i()")
};
var _YD = function() {
_nc("shader_set_uniform_f()")
};
var _ZD = function() {
_nc("shader_set_uniform_matrix()")
};
var __D = function() {
_nc("shader_set_uniform_matrix()")
};
var _0E = function() {
_nc("shader_enable_corner_id()")
};
var _1E = function() {
_nc("shader_set_uniform_array_i()");
};
var _2E = function() {
_nc("shader_set_uniform_array_f()")
};
var _3E = function() {
_nc("shader_set_uniform_matrix_array()")
};
function _4E() {
return 0
}
var _5E = [];
var _6E = 200000;
var _7E = _6E;
var _8E = [];
var _9E = 0;
var audio_sampledata = [];
var _aE = !1;
var _bE = 0;
var _cE = 128;
var _dE = null;
var _eE = 0;
var _fE = [];
var _gE = {
_hE: 0,
_iE: 1,
_jE: 2,
_kE: 3,
_lE: 4,
_mE: 5,
_nE: 6
};
var _oE = 0;
var _pE = 1.0;
var _qE = 0;
function _rE() {
if (_4h != _5h) return;
_bE++
}
var _sE;
function _tE() {
if (_4h != _5h) {
return
}
_uE = g_WebAudioContext.createGainNode();
_uE.connect(g_WebAudioContext.destination);
_vE = g_WebAudioContext.createGainNode();
_vE.connect(_uE);
_wE(_gE._iE);
var _xE;
if (typeof document.hidden !== "undefined") {
_sE = "hidden";
_xE = "visibilitychange"
} else if (typeof document.mozHidden !== "undefined") {
_sE = "mozHidden";
_xE = "mozvisibilitychange"
} else if (typeof document.msHidden !== "undefined") {
_sE = "msHidden";
_xE = "msvisibilitychange"
} else if (typeof document.webkitHidden !== "undefined") {
_sE = "webkitHidden";
_xE = "webkitvisibilitychange"
}
document.addEventListener(_xE, _yE, !1);
_zE(0, 0, 0);
_AE(0, 0, 1.0, 0, 1.0, 0.0)
}
function _BE() {
this.buffer = null;
this.gain = 1.0;
this._CE = 1.0;
this._DE = 1.0;
this.duration = 0.0
}
function _EE(_FE, _GE, _HE) {
this._IE = g_WebAudioContext.createGainNode();
this._JE = null;
this._gr = 0;
this._KE(_FE, _GE, _HE)
}
_EE.prototype._KE = function(_FE, _GE, _HE) {
this._LE = !1;
this._ME = g_WebAudioContext.currentTime;
this.playbackpoint = 0;
this._NE = null;
this.gain = 1.0;
this._IE.gain.value = 1;
if (this._JE != null) {
this._JE.disconnect();
this._JE = null
}
this.paused = !1;
this._OE = _FE;
this._PE = _HE;
this._QE = !1;
this._RE = _GE;
this._SE = !1;
this._TE = null;
this._UE = null;
if (_FE >= 0) {
this._SE = _VE(_FE);
this._IE.gain.value = audio_sampledata[_FE].gain;
if (this._gr >= _6E) {
_fE[this._gr - _6E] = null
}
this._gr = _7E;
_fE[_7E - _6E] = this; ++_7E
}
};
function _VE(_OE) {
if (_OE >= 0 && _OE < _Yp._X2.length) {
if (_Yp._X2[_OE]._b3 == 1) {
return ! 0
}
} else {
debug("Error: soundid " + _OE + " not found")
}
return ! 1
}
function _6h() {
var _WE = g_WebAudioContext.createBufferSource();
var gain = g_WebAudioContext.createGainNode();
_WE.connect(gain);
gain.connect(g_WebAudioContext.destination);
gain.gain.value = 0;
_WE.noteOn(0)
}
function _XE(_YE) {
if (_YE._LE) {
if (_YE._SE) _ZE(_YE);
else __E(_YE);
_YE._OE = -1;
_YE._LE = !1
}
}
function _ZE(_YE) {
if (_YE._TE != null) {
try {
_YE._TE.pause();
_YE._UE.disconnect();
if (_YE._IE != null) _YE._IE.disconnect();
if (_YE._JE != null) {
_YE._JE.disconnect();
_YE._JE = null
}
} catch(_0F) {
debug("Audio_StopStreamed exception: " + _0F)
}
}
}
function __E(_YE) {
try {
if (_YE._NE != null) {
_YE._NE.noteOff(0);
_YE._NE.disconnect();
if (_YE._IE != null) _YE._IE.disconnect();
if (_YE._JE != null) {
_YE._JE.disconnect();
_YE._JE = null
}
}
} catch(_0F) {
debug("Audio_StopUnstreamed exception: " + _0F)
}
}
function _1F(_YE) {
if (!_YE.paused) {
if (_YE._SE) _2F(_YE);
else _3F(_YE);
_YE.paused = !0
}
}
function _2F(_YE) {
try {
_YE._TE.pause()
} catch(_0F) {
debug("Audio_PauseStreamed exception: " + _0F)
}
}
function _3F(_YE) {
try {
_YE._NE.onended = null;
_YE._NE.noteOff(0);
_YE.playbackpoint += g_WebAudioContext.currentTime - _YE._ME
} catch(_0F) {
debug("Audio_PauseUnstreamed exception: " + _0F)
}
}
function _4F(_YE) {
if (_YE.paused) {
if (_YE._SE) _5F(_YE);
else _6F(_YE);
_YE.paused = !1
}
}
function _5F(_YE) {
if (_YE.paused) {
try {
_YE._TE.play()
} catch(_0F) {
debug("Audio_ResumeStreamed exception: " + _0F);
}
}
}
function _6F(_YE) {
try {
_YE._NE = g_WebAudioContext.createBufferSource();
_YE._ME = g_WebAudioContext.currentTime;
_YE._IE = g_WebAudioContext.createGainNode();
_YE._IE.gain.value = _YE.gain * audio_sampledata[_YE._OE].gain;
_YE._NE.connect(_YE._IE);
_YE._NE.onended = function(event) {
_YE._LE = !1
};
if (_YE._JE != null) {
_YE._IE.connect(_YE._JE)
} else {
_YE._IE.connect(_uE)
}
_YE._NE.buffer = audio_sampledata[_YE._OE].buffer;
if (_YE._PE > 0) _YE._NE.loop = !0; {
var _7F = Math.floor(_YE.playbackpoint / _YE._NE.buffer.duration);
var _8F = _YE.playbackpoint - _7F * _YE._NE.buffer.duration;
_YE._NE.noteGrainOn(0, _8F, _YE._NE.buffer.duration - _8F)
}
} catch(_0F) {
debug("Audio_ResumeUnstreamed exception: " + _0F)
}
}
function _9F(_YE) {
var _aF = !1;
if (_YE._LE) {
return _YE.paused
}
return ! 1
}
function _bF(_YE) {
var _cF = !1;
if (_YE._LE) {
if (_YE._SE) _cF = _dF(_YE);
else _cF = _eF(_YE)
}
return _cF
}
function _eF(_YE) {
if (_YE._NE != null) {
if ((_YE._NE.playbackState == undefined || _YE._NE.playbackState != _YE._NE.FINISHED_STATE) || _YE.paused) {
return ! 0
}
}
return ! 1
}
function _dF(_YE) {
if (_YE._TE != null) {
if (!_YE._TE.ended) {
return ! 0;
}
}
return ! 1
}
function _yE() {
if (_4h == _5h) {
if (document[_sE] == !0) {
if (!_aE) {
_aE = !0;
_fF(!0)
}
} else if (document[_sE] == !1) {
if (_aE) {
_gF(!0);
_aE = !1
}
}
}
}
var _hF;
function _wE(_iF) {
if (_4h != _5h) {
return
}
var _jF = g_WebAudioContext.createPanner();
_hF = _jF.INVERSE_DISTANCE;
switch (_iF) {
case _gE._hE:
debug("Audio_falloff_none not supported in html5\n");
break;
case _gE._iE:
_hF = _jF.INVERSE_DISTANCE;
break;
case _gE._jE:
debug("Audio_falloff_inverse_distance_clamped not supported in html5\n");
break;
case _gE._kE:
_hF = _jF.LINEAR_DISTANCE;
break;
case _gE._lE:
debug("Audio_falloff_linear_distance_clamped not supported in html5\n");
break;
case _gE._mE:
_hF = _jF.EXPONENTIAL_DISTANCE;
break;
case _gE._nE:
debug("Audio_falloff_exponent_distance_clamped not supported in html5\n");
break;
default:
debug("Attempting to set audio falloff to unknown model\n");
break
}
}
function _fF(_kF) {
for (_H3 = 0; _H3 < _eE; ++_H3) {
var _WE = _5E[_H3];
if (_WE._LE) {
if (!_WE.paused) {
_1F(_WE);
if (_kF) _WE._QE = !0
}
}
}
}
function _lF() {
for (_H3 = 0; _H3 < _eE; ++_H3) {
var _WE = _5E[_H3];
if (_WE._LE) {
_XE(_WE)
}
}
}
function _gF(_kF) {
for (_H3 = 0; _H3 < _eE; ++_H3) {
var _WE = _5E[_H3];
if (_WE._LE) {
if (_WE.paused) {
if (_kF) {
if (_WE._QE) {
_4F(_WE);
_WE._QE = !1
}
} else {
_4F(_WE)
}
}
}
}
}
function _zE(_mF, _nF, _oF) {
if (_4h == _5h) {
g_WebAudioContext.listener.setPosition(_mF, _nF, _oF)
}
}
function _AE(_mF, _nF, _oF, _pF, _qF, _rF) {
if (_4h == _5h) g_WebAudioContext.listener.setOrientation(_mF, _nF, _oF, _pF, _qF, _rF)
}
function _sF(e) {
if (_4h != _5h) return;
var targetid = e.target.targetid;
debug("error loading sound" + targetid);
if (targetid == undefined) {} else {
debug("AudioError: " + this.URL);
this.completed = !1;
_tF++;
ClearEventListeners(this)
}
}
function _uF(e) {
if (_4h != _5h) return;
var targetid = e.target.targetid;
if (_vF) debug("sound loaded" + targetid);
if (targetid == undefined) {} else {
this.completed = !0;
ClearEventListeners(this);
try {
g_WebAudioContext.decodeAudioData(e.target.response,
function(buffer) {
var _wF = new _BE();
audio_sampledata[targetid] = _wF;
_wF.buffer = buffer;
_tF++;
var _xF = _Yp._X2[targetid].volume;
_wF.gain = _xF;
_wF._CE = _xF;
_wF._DE = 1.0
},
function(err) {
debug("error decoding audio data:" + err);
_tF++
})
} catch(_yF) {
debug("error decoding audio data: " + _yF.message);
_tF++
}
}
}
function _zF(_lz, _Ch, _AF) {
var _wF = new _BE();
audio_sampledata[_Ch] = _wF;
_wF.buffer = null;
var _xF = _Yp._X2[_Ch].volume;
_wF._CE = _xF;
_wF.gain = _xF;
_wF._DE = 1.0;
if (_Yp._X2[_Ch].duration != undefined) {
_wF.duration = _Yp._X2[_Ch].duration
}
}
function _BF(_lz, _Ch, _AF) {
_lz = _CF(_lz);
if ((_4h != _5h) || (_DF == !1)) {
return undefined
}
var _EF;
var index;
index = _lz.indexOf(_AF);
if (index >= 0) {
_lz = _lz.substr(0, index)
}
if (_FF) {
_AF = "ogg"
} else if (_GF) {
_AF = "mp3"
} else {
_AF = "ogg"
}
_lz = _lz + "." + _AF;
var _9y = new XMLHttpRequest();
_9y.open('GET', _lz, !0);
_9y.responseType = 'arraybuffer';
_9y.targetid = _Ch;
_9y.URL = _lz;
_9y.completed = !1;
_9y.onload = _uF;
_9y.onerror = _sF;
_9y.send();
_HF[_Ch] = _9y;
return _Ch
}
var _IF = 0,
_JF = 1,
_KF = 2,
_LF = 3;
function _MF(_NF) {
if (_Ry._Gh(_NF) == null) return ! 1;
return ! 0
}
var _OF = _PF;
function _PF(_U8, _V8, _W8, _vh, _wh, _Aj, _Bj) {
var _QF = document.createElement(_cq);
var _RF = _QF.getContext('2d');
_SF(_RF);
_TF = _Ry._Gh(_U8);
_TF._P9++;
_QF.width = _TF.width;
_QF.height = _TF.height;
_RF._UF(canvas, _V8, _W8, _vh, _wh, 0, 0, _QF.width, _QF.height);
if (_Aj) {
_QF.complete = _Hj(_RF, _vh, _wh)
} else {
_QF.complete = !0
}
_TF._P9++;
var _Kj = new _Lj();
_TF._VF[_TF._VF.length] = _Kj;
_Kj._f3 = 0;
_Kj._g3 = 0;
_Kj._J3 = _TF.width;
_Kj._K3 = _TF.height;
_Kj._s5 = 0;
_Kj._t5 = 0;
_Kj._u5 = _Kj._J3;
_Kj._v5 = _Kj._K3;
_Kj._w5 = _Kj._J3;
_Kj._x5 = _Kj._K3;
_Kj._y5 = _WF(_QF);
_Kj._Ga = _Ha[_Kj._y5];
return _U8
}
var _XF = _YF;
function _YF(_Ch, _V8, _W8, _vh, _wh, _Aj, _Bj, _ZF, __F) {
var _QF = document.createElement(_cq);
var _RF = _QF.getContext('2d');
_SF(_RF);
_QF.width = _Fj._Gh(_Ch).width;
_QF.height = _Fj._Gh(_Ch).height;
_RF._UF(_Fj._Gh(_Ch), 0, 0);
if (_Aj) {
_QF.complete = _Hj(_RF, _vh, _wh)
} else {
_QF.complete = !0
}
var _TF = new _0G();
var _1G = _Ry._2G(_TF);
_TF._Z2 = "surface.copy";
_TF.width = _QF.width;
_TF.height = _QF.height;
_TF._Iy = new _Iq();
_TF._Iy._q9 = _TF.width;
_TF._Iy.bottom = _TF.height;
_TF._03 = !0;
_TF._13 = !0;
_TF.preload = !0;
_TF._3G = 0;
_TF._4G = !1;
_TF._23 = _ZF;
_TF._33 = __F;
_TF._5G = !0;
_TF._P9 = 1;
_TF._6G = !1;
_TF._7G = !1;
_TF._Q9 = [];
_TF._VF = [];
_TF._8G = [];
_TF._9G();
var _Kj = new _Lj();
_TF._VF[0] = _Kj;
_Kj._f3 = 0;
_Kj._g3 = 0;
_Kj._J3 = _TF.width;
_Kj._K3 = _TF.height;
_Kj._s5 = 0;
_Kj._t5 = 0;
_Kj._u5 = _Kj._J3;
_Kj._v5 = _Kj._K3;
_Kj._w5 = _Kj._J3;
_Kj._x5 = _Kj._K3;
_Kj._y5 = _WF(_QF);
_Kj._Ga = _Ha[_Kj._y5];
_aG(_Kj);
return _1G
}
var _bG = _cG;
function _cG(_U8, _Ch, _V8, _W8, _vh, _wh, _Aj, _Bj) {
var _QF = document.createElement(_cq);
var _RF = _QF.getContext('2d');
_SF(_RF);
_TF = _Ry._Gh(_U8);
_TF._P9++;
_QF.width = _TF.width;
_QF.height = _TF.height;
_RF._UF(_Fj._Gh(_Ch), 0, 0, _vh, _wh, 0, 0, _QF.width, _QF.height);
if (_Aj) {
_QF.complete = _Hj(_RF, _vh, _wh)
} else {
_QF.complete = !0
}
var _Kj = new _Lj();
_TF._VF[_TF._VF.length] = _Kj;
_Kj._f3 = 0;
_Kj._g3 = 0;
_Kj._J3 = _TF.width;
_Kj._K3 = _TF.height;
_Kj._s5 = 0;
_Kj._t5 = 0;
_Kj._u5 = _Kj._J3;
_Kj._v5 = _Kj._K3;
_Kj._w5 = _Kj._J3;
_Kj._x5 = _Kj._K3;
_Kj._y5 = _WF(_QF);
_Kj._Ga = _Ha[_Kj._y5];
return _U8
}
var _dG = _eG;
function _eG(_U8) {
var _fG = _Ry._Gh(_U8);
if (_fG == null) return 0;
var _TF = new _0G();
var _1G = _Ry._2G(_TF);
_TF._Z2 = _fG._Z2 + ".copy";
_TF.width = _fG.width;
_TF.height = _fG.height;
_TF._Iy._yh(_fG._Iy);
_TF._03 = _fG._03;
_TF._13 = _fG._13;
_TF.preload = _fG.preload;
_TF._3G = _fG._3G;
_TF._4G = _fG._4G;
_TF._23 = _fG._23;
_TF._33 = _fG._33;
_TF._5G = !0;
_TF._P9 = _fG._P9;
_TF._gG = _fG._gG;
_TF._6G = _fG._6G;
_TF._7G = _fG._7G;
_TF._Q9 = [];
_TF._VF = [];
_TF._8G = [];
for (var _H3 = 0; _H3 < _fG._P9; _H3++) {
var _Kj = new _Lj();
_TF._VF[_H3] = _Kj;
_Kj._5G(_fG._VF[_H3]);
var _hG = _iG(_fG._VF[_H3]);
_Kj._y5 = _WF(_hG);
_Kj._f3 = 0;
_Kj._g3 = 0;
_Kj._Ga = _Ha[_Kj._y5]
}
return _1G
}
function _jG(_kG, _lG, _mG, _nG, _ud, _oG) {
var _J3 = _lG._w5;
var _K3 = _lG._x5;
var _pG = [];
var _qG = _K3 * _J3;
for (__9 = 0; __9 < _qG; __9++) _pG[__9] = !1;
if (_ud == _IF) {
var _rG = _sG(_lG);
var index = 0;
for (var _H3 = 0; _H3 < _rG.length; _H3 += 4) {
if (_rG[_H3 + 3] > _oG) {
_pG[index] = !0
} else {
_pG[index] = !1
}
index++
}
} else {
switch (_ud) {
case _JF:
{
for (var _g3 = _nG.top; _g3 <= _nG.bottom; _g3++) {
for (var _f3 = _nG.left; _f3 <= _nG._q9; _f3++) {
_pG[_f3 + (_g3 * _J3)] = !0
}
}
break
}
case _KF:
{
var _ga = (_nG.left + _nG._q9) / 2;
var _Yb = _ga - _nG.left + 0.5;
var _ha = (_nG.top + _nG.bottom) / 2;
var _Zb = _ha - _nG.top + 0.5;
for (var _g3 = _nG.top; _g3 <= _nG.bottom; _g3++) {
for (var _f3 = _nG.left; _f3 <= _nG._q9; _f3++) {
if ((_Yb > 0) && (_Zb > 0)) {
_pG[_f3 + (_g3 * _J3)] = _ka((_f3 - _ga) / _Yb) + _ka((_g3 - _ha) / _Zb) < 1
}
}
}
break
}
case _LF:
{
var _ga = (_nG.left + _nG._q9) / 2;
var _Yb = _ga - _nG.left + 0.5;
var _ha = (_nG.top + _nG.bottom) / 2;
var _Zb = _ha - _nG.top + 0.5;
for (var _g3 = _nG.top; _g3 <= _nG.bottom; _g3++) {
for (var _f3 = _nG.left; _f3 <= _nG._q9; _f3++) {
if ((_Yb > 0) && (_Zb > 0)) {
_pG[_f3 + (_g3 * _J3)] = Math.abs((_f3 - _ga) / _Yb) + Math.abs((_g3 - _ha) / _Zb) < 1
}
}
}
break
}
}
}
if (_kG != null) {
for (var _H3 = 0; _H3 < _pG.length; _H3++) {
if (_kG[_H3]) _pG[_H3] = !0
}
}
return _pG
}
function _tG(_uG, _vG) {
if (_MF(_uG)) {
var _wG = _Ry._Gh(_uG);
var _Kj = _wG._xG(~~_vG);
if (_Kj) {
return ({
_vd: _Kj._Ga,
_Ld: _Kj
})
}
}
return null
}
function _Nq(_Dh) {
return String.fromCharCode(_Dh)
}
function _yG(_Xr) {
if (!_Xr || _Xr == "") return 0;
return _Xr.charCodeAt(0)
}
function _sy(_Xr) {
if (_Xr == undefined) {
return 0
} else if (typeof(_Xr) == "boolean") {
if (_Xr) return 1;
else return 0;
} else if (typeof(_Xr) == "number") {
return _Xr
}
return parseFloat(_Xr)
}
function _zG(_7i) {
if (_7i == undefined) {
return "undefined"
}
if (_7i instanceof Array) {
var _Nh = "{";
for (var _H3 = 0; _H3 < _7i.length; ++_H3) {
if (_H3 != 0) _Nh += ",";
_Nh += _zG(_7i[_H3])
}
_Nh += "}";
return _Nh
} else if (typeof(_7i) == "number") {
if ((~~_7i) != _7i) {
return _7i.toFixed(2).toString()
} else {
return _7i.toString()
}
} else if (typeof(_7i) == "boolean") {
if (_7i) return "1";
else return "0"
} else {
return _7i.toString()
}
}
var _AG = [];
function _BG(_CG) {
debug("myBrandConnectReadyEvent");
_AG = _CG
}
function _DG() {
_sq()
}
function _EG() {
_FG = !0;
debug("myBrandConnectDoneEvent")
}
function _GG() {
var _HG = document.getElementById("ssaBrandConnectInterstitial");
var _IG = document.getElementById("gm4html5_div_id");
_IG.appendChild(_HG);
_gq()
}
var _JG = !1;
var _FG = !1;
var ssa_json = {
'applicationUserId': '1234',
'applicationKey': '2b46ec59',
'onCampaignsReady': _BG,
'onCampaignsDone': _EG,
'onCampaignClose': _DG,
'onCampaignOpen': _GG,
'maxWidth': 1000,
'maxHeight': 700,
};
var _KG = (function(_mk, _V9) {
var _jb = _mk.createElement(_V9),
_9q = _mk.getElementsByTagName(_V9)[0];
_jb._7r = !0;
_jb.src = ('https:' != location.protocol ? 'http://jsd.supersonicads.com': 'https://a248.e.akamai.net/ssastatic.s3.amazonaws.com') + '/inlineDelivery/delivery.min.gz.js';
_9q.parentNode.insertBefore(_jb, _9q)
});
var _LG = ads_engagement_launch;
function ads_engagement_launch(_MG, _NG) {
if (SSA_CORE != undefined) SSA_CORE.BrandConnect.engage();
}
var _OG = [];
_PG = _QG;
function _QG(_Ch, _vh, _wh) {
if (_Ch == _RG) {
_SG = !0;
_TG = _vh;
_UG = _wh;
return 1
}
if (!_VG(_Ch)) {
_Xg("Surface does not exist");
return 0
}
_Dj(_vh, _wh, _Ch);
return 0
}
_Dj = _WG;
function _WG(_vh, _wh, _XG) {
var _Tj = document.createElement(_cq);
_Tj._Od = _Tj.width = _vh;
_Tj._Pd = _Tj.height = _wh;
_Tj.complete = !0;
_Tj._YG = !1;
_Tj.name = "";
_Tj._yb = _Tj.getContext('2d');
_SF(_Tj._yb);
var _Kj = new _Lj();
_Tj._ZG = _Kj;
_Kj._f3 = 0;
_Kj._g3 = 0;
_Kj._J3 = _vh;
_Kj._K3 = _wh;
_Kj._s5 = 0;
_Kj._t5 = 0;
_Kj._u5 = _Kj._J3;
_Kj._v5 = _Kj._K3;
_Kj._w5 = _Kj._J3;
_Kj._x5 = _Kj._K3;
if (_XG != undefined) {
_Fj._gi(_XG, _Tj);
_Kj._y5 = _XG
} else {
_Kj._y5 = _Fj._Wh(_Tj)
}
_Kj._Ga = _Tj;
_Kj._Da = [];
_Kj._Ea = 0;
_Kj._Fa = 4;
_Kj.__G = 0;
_Kj._0H = null;
_Kj._QF = _Tj;
return _Kj._y5
}
var _1H = _2H;
function _2H(_Ch) {
_Fj._di(_Ch)
}
function _VG(_Ch) {
if (_Fj._Gh(_Ch) != null) return ! 0;
else return ! 1
}
function _3H(_Ch) {
var _Tj = _Fj._Gh(_Ch);
if (_Tj != null) {
return _Tj._Od
}
return 0
}
function _4H(_Ch) {
var _Tj = _Fj._Gh(_Ch);
if (_Tj != null) {
return _Tj._Pd
}
return 0
}
_5H = _6H;
function _6H(_Ch) {
var _Tj = _Fj._Gh(_Ch);
if (_Tj != null) {
_yb._Lu();
_OG.push(_yb);
_Tj._yb._7H = _Ch;
_yb = _Tj._yb;
_8H = !1
}
}
var _9H, _aH, _bH, _cH;
var _dH = _eH;
function _eH(_Ch) {
var _Tj = _Fj._Gh(_Ch);
if (_Tj != null) {
_fH.left = _gH.left;
_fH.top = _gH.top;
_fH._q9 = _gH._q9;
_fH.bottom = _gH.bottom;
_gH.left = 0;
_gH.top = 0;
_gH._q9 = _Tj._Od;
_gH.bottom = _Tj._Pd;
_hH._yh(_iH);
_iH._jH = 0;
_iH._kH = 0;
_iH._lH = _Tj._Od;
_iH._mH = _Tj._Pd;
_iH._nH = 0;
_iH._oH = 0;
_iH._pH = _Tj._Od;
_iH._qH = _Tj._Pd;
_iH._Qg = 0;
_iH._Sg = 0;
_iH._rH = _Tj._Od;
_iH._sH = _Tj._Pd;
_iH._Rg = _iH._Qg + _iH._rH;
_iH._Tg = _iH._Sg + _iH._sH;
_yb._Lu();
_OG.push(_yb);
_9H = _Ou;
_aH = _Pu;
_bH = _Qu;
_cH = _Ru;
_tH(0, 0, _Tj._Od, _Tj._Pd);
_uH(0, 0, _Tj._Od, _Tj._Pd);
g_CurrentGraphics = _Tj._yb;
_yb = _Tj._yb;
_yb._Lu();
_8H = !0
}
}
var _vH = _wH;
function _wH() {
if (_8H) {
_gH = _fH;
_iH._yh(_hH);
_tH(_9H, _aH, _bH, _cH);
_uH(_iH._jH, _iH._kH, _iH._lH, _iH._mH);
_yb._Su()
}
var _xH = _OG.pop();
_yb = _xH ? _xH: _yH;
g_CurrentGraphics = _yb;
_yb._Su()
}
function _cw(_zH, _V8, _W8) {
var data = null;
var _Gj = _zH.getContext('2d');
try {
data = _Gj._AH(_V8, _W8, 1, 1)
} catch(_yF) {
return 0xff000000
}
_BH = data.data;
var index = 0;
var _CH = _BH[index] & 0xff;
var _DH = _BH[index + 1] & 0xff;
var _EH = _BH[index + 2] & 0xff;
var _FH = _BH[index + 3] & 0xff;
return (_CH | (_DH << 8) | (_EH << 16) | (_FH << 24))
}
var _GH = _HH;
var _IH = _JH;
function _HH(_Ch, _V8, _W8) {
return _JH(_Ch, _V8, _W8) & 0xffffff
}
function _JH(_Ch, _V8, _W8) {
var _Tj = _Fj._Gh(_Ch);
if (_Tj != null) {
return _cw(_Tj, _Xi(_V8), _Xi(_W8))
}
return 0x00000000
}
var _KH = _LH;
function _LH(_Ch, _V8, _W8) {
var _Tj = _Fj._Gh(_Ch);
if (!_Tj) return;
_V8 = ~~_V8;
_W8 = ~~_W8;
var alpha = _yb.globalAlpha; {
_yb.globalAlpha = _Ad;
_yb._UF(_Tj, _V8, _W8)
}
_yb.globalAlpha = alpha
}
function _MH(_Ch, _V8, _W8, _vh, _wh) {
var _Tj = _Fj._Gh(_Ch);
if (!_Tj) return;
_NH(_Tj._ZG, _V8, _W8, _vh, _wh, 0xffffff, 1.0)
}
var _OH = _PH;
function _PH(_Ch, _V8, _W8, __l, _0m, _QH, _Gd) {
_nc("draw_surface_tiled_ext()")
}
function _RH(_SH, _V8, _W8, _TH) {
var _Ej = _Fj._Gh(_SH);
var _Qj = _Fj._Gh(_TH);
if (_Ej != null && _Qj != null) {
var _Gj = _Ej.getContext('2d');
_Gj.save();
_Gj.globalCompositeOperation = 'copy';
_Gj.drawImage(_Qj, _V8, _W8);
_Gj.restore()
}
}
function _UH(_SH, _V8, _W8, _TH, _VH, _WH, _XH, _YH) {
var _Ej = _Fj._Gh(_SH);
var _Qj = _Fj._Gh(_TH);
if (_Ej != null && _Qj != null) {
var _Mu = [];
var _Gj = _Ej.getContext('2d');
_Gj.save();
_Mu[0] = 1;
_Mu[1] = 0;
_Mu[2] = 0;
_Mu[3] = 1;
_Mu[4] = 0;
_Mu[5] = 0;
_Gj.setTransform(_Mu[0], _Mu[1], _Mu[2], _Mu[3], _Mu[4], _Mu[5]);
_Gj.beginPath();
_Gj.rect(_V8, _W8, _XH, _YH);
_Gj.clip();
_Gj.globalCompositeOperation = 'copy';
_Gj.drawImage(_Qj, _VH, _WH, _XH, _YH, _V8, _W8, _XH, _YH);
_Gj.restore()
}
}
function _97(_lt, _ZH, __H, _V8, _W8) {
if (__H < 0) __H = ~~_lt._L7;
var _fG = _Ry._Gh(_ZH);
if (_fG != null) {
_fG._0I(__H, _V8, _W8, _Ad)
}
}
function _1I(_2I, _3I) {
if (_2I) {
if (_3I === undefined) {
canvas.style.cursor = ""
} else {
canvas.style.cursor = _3I
}
} else {
canvas.style.cursor = "none"
}
}
function _4I(_Cd) {
_5I = _Dd(_Cd)
}
var _6I = _4I;
function _7I() {
return _Dd(_5I)
}
var _8I = _7I;
function _T6(_V8, _W8) {
var _9I = document.getElementById(_cq);
var _aI = _9I;
for (var _aI = _9I; _aI; _aI = _aI.parentNode) {
var position;
if (_aI["currentStyle"]) {
position = _aI["currentStyle"]["position"]
} else if (window.getComputedStyle) {
try {
var style = window.getComputedStyle(_aI, null);
if (style) {
position = style.getPropertyValue("position")
}
} catch(e) {}
}
if (position && (position == "fixed")) {
debug("Warning: Canvas position fixed. Ignoring position alterations");
return
}
}
_9I.style.position = "absolute";
_9I.style.left = _V8 + "px";
_9I.style.top = _W8 + "px"
}
function _U6(_vh, _wh) {
canvas.width = _vh;
canvas.height = _wh;
_9w = _vh;
_bw = _wh;
_bI = canvas.width;
_cI = canvas.height;
_Og(canvas, _Pg);
_dI = _Pg.top;
_eI = _Pg.left;
_fI = _Pg._q9;
_gI = _Pg.bottom;
_hI = _bI;
_iI = _cI;
_jI = _vh;
_kI = _wh;
_lI = 1;
_mI = 1
}
function _nI(_V8, _W8, _vh, _wh) {
_U6(_vh, _wh);
_T6(_V8, _W8)
}
function _oI() {
return _fI - _eI
}
function _pI() {
return _gI - _dI
}
var _qI;
var _rI;
var _sI;
var _tI;
var _uI;
var _vI;
var _wI;
var _xI;
var _yI;
var _zI;
var _AI;
var _BI;
var _CI = 0;
var _DI = 1,
_EI = 2,
_FI = 3,
_GI = 4,
_HI = 5,
_II = 6;
var _JI = aa_1241_kz();
function aa_1241_kz() {
return 0x87155211
}
function _KI() {
var _LI = null;
if (window.XMLHttpRequest) {
_LI = new XMLHttpRequest()
}
if (typeof(XMLHttpRequest) == "undefined") {
_LI = function() {
try {
return new ActiveXObject("Msxml2.XMLHTTP.6.0")
} catch(e) {}
try {
return new ActiveXObject("Msxml2.XMLHTTP.3.0")
} catch(e) {}
try {
return new ActiveXObject("Msxml2.XMLHTTP")
} catch(e) {}
throw new _Xg("This browser does not support XMLHttpRequest.")
}
}
this._MI = _LI;
this._NI = !1
}
var _OI = new _KI();
function _PI() {}
var _QI = _RI;
function _RI(_2I) {}
var _SI = _TI;
function _TI() {
return ! 1
}
var _UI = _VI;
function _VI() {}
var _WI = _XI;
function _XI() {}
var _YI = _ZI;
function _ZI() {}
var __I = _0J;
function _0J() {}
var _1J = _2J;
function _2J() {}
var _3J = _4J;
function _4J() {}
var _5J = _6J;
function _6J() {}
var _7J = _8J;
function _8J() {}
var _9J = _aJ;
function _aJ() {}
var _bJ = _cJ;
function _cJ() {}
var _dJ = _eJ;
function _eJ() {}
var _fJ = _gJ;
function _gJ() {
return - 1
}
var _hJ = _iJ;
function _iJ() {}
var _jJ = _kJ;
function _kJ() {}
var _lJ = _mJ;
function _mJ() {}
var _nJ = _oJ;
function _oJ() {
return _pJ
}
function _qJ() {
return _rJ
}
function _sJ() {
return _yz
}
function _tJ() {
return _uJ
}
var _vJ = _wJ;
function _wJ(_lz, _xJ, _yJ) {
if (_xJ != "_self" && _xJ != "_blank" && _xJ != "_parent" && _xJ != "_top") {
_Xg("Error: invalid TARGET specified. Only '_self', '_blank', 'parent' or '_top' supported. (YoYo_OpenURL)");
return
}
var _Is = window.open(_lz, _xJ, _yJ)
}
var _zJ = _AJ;
function _AJ(_lz, _xJ) {
_vJ(_lz, _xJ, "scrollbars=yes,menubar=yes,resizable=yes,toolbar=yes,location=yes,status=yes")
}
var _BJ = _CJ;
function _CJ(_lz) {
_zJ(_lz, "_self")
}
var _DJ = _EJ;
function _EJ(_FJ, _GJ) {}
var _HJ = _IJ;
function _IJ(_FJ, _JJ) {}
var _KJ = null;
var _LJ = null;
var _MJ = _NJ;
function _NJ(_f3, _g3, _ju) {
if (_MJ) {
_MJ(_f3, _g3, _ju)
}
}
function ads_engagement_launch() {
_nc("ads_engagement_launch()")
}
var _OJ = _PJ;
function _PJ(__p, _QJ, _RJ, _SJ) {}
var _TJ = _6j;
function _6j() {
var _V9 = new Date().getTime() * 1000;
return _V9 - _qI;
}
var _UJ = _VJ;
function _VJ(_V8, _W8, _vh, _wh, _WJ) {
var _XJ = _YJ();
_XJ._f3 = _V8;
_XJ._g3 = _W8;
_XJ._J3 = _vh;
_XJ._K3 = _wh;
_XJ._pz = _WJ;
_XJ._I9 = _V8 + _vh;
_XJ._J9 = _W8 + _wh;
_XJ.button = _XJ._vb = _XJ._xb = 0;
_XJ._ZJ = __J;
return (_XJ.index + 1)
}
var _0K = _1K;
function _1K(_Ch) {
if (_Ch < 0) return;
var index = _Ch - 1;
if ((index < 0) || (index >= _2K.length)) {
debug("Invalid index when deleting virtual key")
}
_3K(_Ch - 1)
}
function _4K() {
_5K = [];
for (var _R9 = 0; _R9 < _2K.length; ++_R9) {
var _6K = _2K[_R9];
if ((_6K._ZJ & _7K) != 0) _5K[_5K.length] = _6K
}
}
var _8K = _9K;
function _9K(_Ch) {
if (_Ch < 0) return;
_Ch--;
if (!_2K[_Ch]) return;
_2K[_Ch]._ZJ |= _7K;
_4K()
}
var _aK = _bK;
function _bK(_Ch) {
if (_Ch < 0) return;
_Ch--;
if (!_2K[_Ch]) return;
_2K[_Ch]._ZJ &= ~_7K;
_4K()
}
var _cK = _dK;
function _dK() {
return 0
}
var _eK = _fK;
function _fK() {
return 0
}
var _gK = _hK;
function _hK() {
return 0
}
var _iK = _jK;
function _jK() {
_2q("device_ios_get_imagename()")
}
var _kK = _lK;
function _lK() {
_2q("device_ios_get_image()")
}
var _mK = _nK;
function _nK() {
_2q("openfeint_start()")
}
var _oK = _pK;
function _pK(_Hz, _Kz) {
_2q("achievement_map_achievement()")
}
var _qK = _rK;
function _rK(_Hz, _Kz, _sK) {
_2q("achievement_map_leaderboard()")
}
var _tK = _uK;
function _uK(_Hz, _Kz, _sK) {
_2q("openfeint_send_challenge()")
}
var _vK = _wK;
function _wK(_Hz) {
_2q("openfeint_send_invite()")
}
var _xK = _yK;
function _yK(_Hz, _Kz, _sK) {
_2q("openfeint_send_social()")
}
var _zK = _AK;
function _AK(_Hz) {
_2q("openfeint_set_url()")
}
var _BK = _CK;
function _CK() {
_2q("openfeint_accept_challenge()");
return ""
}
var _DK = _EK;
function _EK() {
_2q("achievement_is_online()");
return ! 1
}
var _FK = _GK;
function _GK(_Hz, _Kz) {
_2q("openfeint_send_result()")
}
var _HK = _IK;
function _IK() {
return ! 1
}
function _JK() {
_qI = new Date().getTime() * 1000;
var _V9 = 0;
for (var _H3 = 0; _H3 < 12; _H3++) {
_up[_H3] = _V9;
_V9 += _tp[_H3]
}
_rI = 0;
_sI = 1;
_tI = 2;
_uI = 3;
_vI = 4;
_wI = 5;
_xI = 0;
_yI = 1;
_zI = 2;
_AI = 0;
_BI = 1
}
function _KK() {
var _V9 = setTimeout(function() {
for (var _LK in _Ry._Y2) {
if (!_Ry._Y2.hasOwnProperty(_LK)) continue;
_Ry._MK(_LK);
break
}
_KK()
},
1000)
}
var _NK = _OK;
function _OK() {
return document.domain
}
function _PK(_QK, _RK) {
for (var _SK in _QK) {
var _TK = _QK[_SK];
if (_TK instanceof Array) {
var _UK = _Sh();
_Zh(_RK, _UK);
_PK(_TK, _UK)
} else if (typeof(_TK) == "object") {
var _VK = _9i();
_Zh(_RK, _VK);
_Cr(_TK, _VK)
} else if (typeof(_TK) == "string") {
_Zh(_RK, _TK)
}
}
}
function _Cr(_Ja, _wr) {
for (var _yr in _Ja) {
if (_Ja.hasOwnProperty(_yr)) {
var _TK = _Ja[_yr];
if (_TK instanceof Array) {
var _WK = _Sh();
_ji(_wr, _yr, _WK);
_PK(_TK, _WK)
} else if (typeof(_TK) == "object") {
var _XK = _9i();
_ji(_wr, _yr, _XK);
_Cr(_TK, _XK)
} else if (typeof(_TK) == "string") {
_ji(_wr, _yr, _TK)
}
}
}
}
var _YK = _ZK;
function _ZK() {}
var __K = _0L;
var _0r = _Qq;
function _0L() {
return _0r
}
var _1L = _pr;
var _2L = _sr;
var _3L = _Dr;
var _4L = _5L;
function _5L() {
if (typeof(_Yp._A5.GenerateSpotifyApp) != "undefined") {
if (typeof(g_fbOAuthToken) != "undefined") {
if (g_fbOAuthToken != null) {
var _dr = 'https://www.facebook.com/logout.php?access_token=' + g_fbOAuthToken + '&app_id=' + _Yp._A5._nr + '&next=http://www.yoyogames.com/facebook/wordsong/index.html';
var _er = new XMLHttpRequest();
_er.open('GET', _dr);
_er.send(null);
g_fbOAuthToken = null;
_0r = 'UNINITIALISED'
}
}
} else {
debug("facebook_logout");
FB.logout(function(response) {
if (response.status != 'connected') {
_0r = _Qq;
__q = "";
g_fbOAuthToken = ""
}
})
}
return 0
}
var _6L = _7L;
function _7L(_8L, _9L) {
if (_8L == 0) {
return _6z(_9L)
} else {
if (_1h[_8L] && (_9L <= 1)) {
return _1h[_8L]._nf
}
}
return 0
}
var _aL = _bL;
function _bL(_8L, _9L) {
if (_8L == 0) {
return _8z(_9L)
} else {
if (_1h[_8L] && (_9L <= 1)) {
return _1h[_8L]._if
}
}
return 0
}
var _cL = _dL;
function _dL(_8L, _9L) {
if (_8L == 0) {
return _9z(_9L);
} else {
if (_1h[_8L] && (_9L <= 1)) {
return _1h[_8L]._mf
}
}
return 0
}
var _eL = _fL;
function _fL(_8L) {
if (_8L == 0) {
return _w6._h7
} else if (_1h[_8L]) {
return _1h[_8L]._f3
}
return 0
}
var _gL = _hL;
function _hL(_8L) {
if (_8L == 0 && _iL[0]) {
return _iL[0]._f3
} else if (_1h[_8L]) {
return _1h[_8L]._f3
}
return 0
}
var _jL = _kL;
function _kL(_8L) {
if (_8L == 0) {
return _w6._lL
} else if (_1h[_8L]) {
return _1h[_8L]._g3
}
return 0
}
var _mL = _nL;
function _nL(_8L) {
if (_8L == 0 && _iL[0]) {
return _iL[0]._g3
} else if (_1h[_8L]) {
return _1h[_8L]._g3
}
return 0
}
var _oL = _pL;
function _pL() {
return _qL
}
var _rL = _sL;
function _sL() {
return _tL
};
function _uL() {
var _yA = 0;
var _zA = 0;
var _vL = 0;
var _wL = 0;
canvas = document.getElementById(_cq);
var _xL = _bI;
var _yL = _cI;
if (_zL && _AL) {
var _J3 = _BL;
var _K3 = _CL;
var _tl, _ja, _ia;
_tl = _J3 / _K3;
_ja = _xL / _tl;
if (_ja < _yL) {
_tl = _K3 / _J3;
_ja = _xL * _tl;
_zA = (_yL - _ja) / 2;
_ia = _xL;
_ja += _zA
} else {
_tl = _J3 / _K3;
_ia = _yL * _tl;
_yA = (_xL - _ia) / 2;
_ja = _yL;
_ia += _yA
}
_vL = _ia;
_wL = _ja
} else {
_vL = _xL;
_wL = _yL
}
_DL._f3 = _yA;
_DL._g3 = _zA;
_DL._J3 = _vL - _yA;
_DL._K3 = _wL - _zA
} (function() {
'use strict';
Function.prototype._EL = function(parent) {
this.prototype.parent = parent;
for (var _f3 in parent.prototype) {
if (!this.prototype[_f3]) this.prototype[_f3] = parent.prototype[_f3]
}
};
Function.prototype._FL = function(parent) {
return this._EL(parent)
};
Array.prototype._GL = function(_z3, _Xp, _HL) {
if (typeof(_z3) === 'undefined') _z3 = 0;
if (typeof(_Xp) === 'undefined') _Xp = this.length - _z3;
if (typeof(_HL) === 'undefined') _HL = function(_kb, _W9) {
return _kb < _W9
};
var left = _z3,
_Gi = [],
_Hn = 0;
for (;;) {
for (; left + 1 < _Xp; _Xp++) {
var _IL = this[left + Math.floor(Math.random() * (_Xp - left))];
_Gi[_Hn++] = _Xp;
for (var _q9 = left - 1;;) {
while (_HL(this[++_q9], _IL)) {}
while (_HL(_IL, this[--_Xp])) {}
if (_q9 >= _Xp) break;
var _Fv = this[_q9];
this[_q9] = this[_Xp];
this[_Xp] = _Fv
}
}
if (_Hn === 0) break;
left = _Xp;
_Xp = _Gi[--_Hn]
}
return this
};
Array.prototype._JL = function(_KL, length) {
if (typeof(length) === 'undefined') length = this.length;
var _R9 = 0;
for (var _I3 = 0; _I3 < length; ++_I3) {
if (_KL(this[_I3])) continue;
if (_I3 === _R9) {++_R9;
continue
}
this[_R9++] = this[_I3]
}
return _R9
};
Array.prototype._LL = function(_z3, _A3, _cf, _HL) {
if (typeof(_HL) === 'undefined') _HL = function(_kb, _W9) {
return _kb < _W9
};
var _Ea = _A3 - _z3;
while (_Ea > 0) {
var _ML = Math.floor(_Ea / 2);
var _NL = _z3 + _ML;
if (_HL(this[_NL], _cf)) {
_z3 = ++_NL;
_Ea -= _ML + 1
} else _Ea = _ML
}
return _z3
};
Array.prototype._OL = function(_z3, _A3, _cf, _HL) {
if (typeof(_HL) === 'undefined') _HL = function(_kb, _W9) {
return _kb < _W9
};
var _Ea = _A3 - _z3;
while (_Ea > 0) {
var _ML = Math.floor(_Ea / 2);
var _NL = _z3 + _ML;
if (!_HL(_cf, this[_NL])) {
_z3 = ++_NL;
_Ea -= _ML + 1
} else _Ea = _ML
}
return _z3
};
Array.prototype.rotate = function(_z3, _PL, _A3) {
var _ni = _PL;
while (_z3 != _ni) {
var _QL = this[_z3];
this[_z3] = this[_ni];
this[_ni] = _QL; ++_z3; ++_ni;
if (_ni === _A3) _ni = _PL;
else if (_z3 === _PL) _PL = _ni
}
};
var _RL = (function() {
if (typeof(_SL) === 'undefined') window['performance'] = {
now: function() {
return + new Date()
}
};
function _TL(name, parent) {
this.name = name;
this.parent = parent;
this._UL = {};
this._VL = 0;
this._WL = 0;
this._XL = 0;
this._YL = !1;
this._ZL = 0
}
_TL.prototype = {
start: function() {
this._VL = _SL.now();
this._YL = !0
},
stop: function(__L) {
if (!this._YL) return;
this._YL = !1;
this._WL += _SL.now() - this._VL;
if (__L) this.start();
for (var _f3 in this._UL) this._UL[_f3].stop();
},
__L: function(_0M) {
if (!_0M) {
this._YL = !0;
this._XL += this._WL;
this.start()
}
this._WL = 0;
for (var _f3 in this._UL) this._UL[_f3].__L(!0)
}
};
var _1M = [];
var _19 = new _TL("root");
function _2M(name, parent) {
if (!_1M) throw new _Xg("late profile creation not allowed");
var _9q = new _TL(name, parent || 'root');
_1M.push(_9q);
return _9q
}
function _3M(_4M) {
_4M._ZL--;
delete _4M._UL[_4M.name]
}
function _5M(_aI, _4M) {
if (_aI.name === _4M.parent) return _aI;
for (var _f3 in _aI._UL) {
var _C9;
if (_C9 = _5M(_aI._UL[_f3], _4M)) return _C9
}
return null
}
function init() {
while (_1M.length) {
var _mv = _1M.pop();
if (! (_mv.parentNode = _5M(_19, _mv))) _1M._6M(_mv);
else {
_mv.parentNode._UL[_mv.name] = _mv;
_mv.parentNode._ZL++
}
}
_1M = null
}
function _7M() {
_19.__L(!0)
}
var _Nh = {
_2M: _2M,
_3M: _3M,
init: init,
__L: _7M,
_8M: _19
};
return _Nh
} ());
function _9M(_aM) {
if (!_aM) {
console.log("Assertion failed! Pls debug.");
_bM
}
}
var _cM = Number.MAX_VALUE;
var _dM = 2.2204460492503131e-016;
var _eM = Math.PI;
var _fM = 2;
var _gM = 8;
var _hM = 0.1;
var _iM = 2.0;
var _jM = 0.005;
var _kM = (2.0 / 180.0 * _eM);
var _lM = (2.0 * _jM);
var _mM = 8;
var _nM = 32;
var _oM = 1.0;
var _pM = 0.2;
var _qM = (8.0 / 180.0 * _eM);
var _rM = 2.0;
var _sM = (_rM * _rM);
var _tM = (0.5 * _eM);
var _uM = (_tM * _tM);
var _vM = 0.2;
var _wM = 0.75;
var _xM = 0.5;
var _yM = 0.01;
var _zM = (2.0 / 180.0 * _eM);
var _AM = ( - 1);
var _BM = 0.75;
var _CM = 1.0;
var _DM = 5.0;
var _EM = 2;
var _FM = (_EM * _EM);
var _GM = 256;
function _HM(_IM, _JM, _KM) {
this._LM = _IM;
this._MM = _JM;
this._NM = _KM
}
_HM.prototype = {
toString: function() {
return this._LM + '.' + this._MM + '.' + this._NM
}
};
var _OM = new _HM(2, 3, 1);
function _PM(_f3) {
return isFinite(_f3) && !isNaN(_f3)
}
var _QM = Math.sqrt;
var _RM = Math.atan2;
var _SM = Math.sin;
var _TM = Math.cos;
var _UM = Math.floor;
var _VM = Math.ceil;
var _WM = _QM;
var _XM = _RM;
function _YM(_f3) {
return 1.0 / _QM(_f3)
}
function _ZM(_f3, _g3) {
if (typeof(_f3) !== 'undefined') {
this._f3 = _f3;
this._g3 = _g3
} else this._f3 = this._g3 = 0
}
_ZM.prototype = {
_u8: function() {
return new _ZM(this._f3, this._g3)
},
__M: function() {
this._f3 = 0.0;
this._g3 = 0.0;
return this
},
_gi: function(_0N, _1N) {
this._f3 = _0N;
this._g3 = _1N;
return this
},
_2N: function(_R9) {
this._f3 = _R9._f3;
this._g3 = _R9._g3;
return this
},
_3N: function() {
var _xb = new _ZM();
_xb._gi( - this._f3, -this._g3);
return _xb
},
_4N: function(_H3) {
switch (_H3) {
case 0:
return this._f3;
case 1:
return this._g3
}
},
_5N: function(_H3, _xb) {
switch (_H3) {
case 0:
return this._f3 = _xb;
case 1:
return this._g3 = _xb
}
},
_Wh: function(_xb) {
this._f3 += _xb._f3;
this._g3 += _xb._g3;
return this
},
_6N: function(_xb) {
this._f3 -= _xb._f3;
this._g3 -= _xb._g3;
return this
},
_Vo: function(_kb) {
this._f3 *= _kb;
this._g3 *= _kb;
return this
},
_7N: function() {
return _WM(this._f3 * this._f3 + this._g3 * this._g3)
},
_8N: function() {
return this._f3 * this._f3 + this._g3 * this._g3
},
_9N: function() {
var length = this._7N();
if (length < _dM) {
return 0.0
}
var _aN = 1.0 / length;
this._f3 *= _aN;
this._g3 *= _aN;
return length
},
_bN: function() {
return _PM(this._f3) && _PM(this._g3)
},
_cN: function() {
return new _ZM( - this._g3, this._f3)
},
_dN: function(_eN) {
var _xr = _eN || [];
_xr[0] = this._f3;
_xr[1] = this._g3;
return _xr
},
_fN: function(data) {
this._f3 = data[0];
this._g3 = data[1]
}
};
_ZM._Wh = function(_kb, _W9) {
return new _ZM(_kb._f3 + _W9._f3, _kb._g3 + _W9._g3)
};
_ZM._6N = function(_kb, _W9) {
return new _ZM(_kb._f3 - _W9._f3, _kb._g3 - _W9._g3)
};
_ZM._gN = function(_kb, _W9) {
return _kb._f3 == _W9._f3 && _kb._g3 == _W9._g3
};
_ZM._Vo = function(_9q, _kb) {
return new _ZM(_9q * _kb._f3, _9q * _kb._g3)
};
_ZM._3N = function(_kb) {
return new _ZM( - _kb._f3, -_kb._g3)
};
function _hN(_f3, _g3, _Cc) {
if (typeof(_f3) !== 'undefined') {
this._f3 = _f3;
this._g3 = _g3;
this._Cc = _Cc
}
}
_hN.prototype = {
_u8: function() {
return new _hN(this._f3, this._g3, this._Cc)
},
__M: function() {
this._f3 = 0.0;
this._g3 = 0.0;
this._Cc = 0.0
},
_gi: function(_0N, _1N, _iN) {
this._f3 = _0N;
this._g3 = _1N;
this._Cc = _iN
},
_3N: function() {
var _xb = new _hN();
_xb._gi( - this._f3, -this._g3, -this._Cc);
return _xb
},
_Wh: function(_xb) {
this._f3 += _xb._f3;
this._g3 += _xb._g3;
this._Cc += _xb._Cc
},
_6N: function(_xb) {
this._f3 -= _xb._f3;
this._g3 -= _xb._g3;
this._Cc -= _xb._Cc
},
_Vo: function(_9q) {
this._f3 *= _9q;
this._g3 *= _9q;
this._Cc *= _9q
},
_f3: 0,
_g3: 0,
_Cc: 0
};
_hN._Vo = function(_9q, _kb) {
return new _hN(_9q * _kb._f3, _9q * _kb._g3, _9q * _kb._Cc)
};
_hN._Wh = function(_kb, _W9) {
return new _hN(_kb._f3 + _W9._f3, _kb._g3 + _W9._g3, _kb._Cc + _W9._Cc)
};
_hN._6N = function(_kb, _W9) {
return new _hN(_kb._f3 - _W9._f3, _kb._g3 - _W9._g3, _kb._Cc - _W9._Cc)
};
function _jN(_kN, _lN) {
this._yF = _kN ? _kN._u8() : new _ZM();
this._mN = _lN ? _lN._u8() : new _ZM()
}
_jN.prototype = {
_gi: function(_kN, _lN) {
this._yF._2N(_kN);
this._mN._2N(_lN)
},
_2N: function(_fp) {
this._yF._2N(_fp._yF);
this._mN._2N(_fp._mN)
},
_nN: function() {
this._yF._f3 = 1.0;
this._mN._f3 = 0.0;
this._yF._g3 = 0.0;
this._mN._g3 = 1.0
},
__M: function() {
this._yF._f3 = 0.0;
this._mN._f3 = 0.0;
this._yF._g3 = 0.0;
this._mN._g3 = 0.0
},
_oN: function() {
var _kb = this._yF._f3,
_W9 = this._mN._f3,
_I3 = this._yF._g3,
_mk = this._mN._g3;
var _pN = new _jN();
var _qN = _kb * _mk - _W9 * _I3;
if (_qN != 0.0) {
_qN = 1.0 / _qN
}
_pN._yF._f3 = _qN * _mk;
_pN._mN._f3 = -_qN * _W9;
_pN._yF._g3 = -_qN * _I3;
_pN._mN._g3 = _qN * _kb;
return _pN
},
_rN: function(_W9) {
var _sN = this._yF._f3,
_tN = this._mN._f3,
_uN = this._yF._g3,
_vN = this._mN._g3;
var _qN = _sN * _vN - _tN * _uN;
if (_qN != 0.0) {
_qN = 1.0 / _qN
}
var _f3 = new _ZM();
_f3._f3 = _qN * (_vN * _W9._f3 - _tN * _W9._g3);
_f3._g3 = _qN * (_sN * _W9._g3 - _uN * _W9._f3);
return _f3
}
};
_jN._Wh = function(_aM, _pN) {
return new _jN(_ZM._Wh(_aM._yF, _pN._yF), _ZM._Wh(_aM._mN, _pN._mN))
};
function _wN(_kN, _lN, _xN) {
this._yF = _kN ? _kN._u8() : new _hN();
this._mN = _lN ? _lN._u8() : new _hN();
this._yN = _xN ? _xN._u8() : new _hN()
}
_wN.prototype = {
__M: function() {
this._yF.__M();
this._mN.__M();
this._yN.__M()
},
_zN: function(_W9) {
var _qN = _AN(this._yF, _BN(this._mN, this._yN));
if (_qN != 0.0) {
_qN = 1.0 / _qN
}
var _f3 = new _hN();
_f3._f3 = _qN * _AN(_W9, _BN(this._mN, this._yN));
_f3._g3 = _qN * _AN(this._yF, _BN(_W9, this._yN));
_f3._Cc = _qN * _AN(this._yF, _BN(this._mN, _W9));
return _f3
},
_CN: function(_W9) {
var _sN = this._yF._f3,
_tN = this._mN._f3,
_uN = this._yF._g3,
_vN = this._mN._g3;
var _qN = _sN * _vN - _tN * _uN;
if (_qN != 0.0) {
_qN = 1.0 / _qN
}
var _f3 = new _ZM();
_f3._f3 = _qN * (_vN * _W9._f3 - _tN * _W9._g3);
_f3._g3 = _qN * (_sN * _W9._g3 - _uN * _W9._f3);
return _f3
},
_DN: function(_EN) {
var _kb = this._yF._f3,
_W9 = this._mN._f3,
_I3 = this._yF._g3,
_mk = this._mN._g3;
var _qN = _kb * _mk - _W9 * _I3;
if (_qN != 0.0) {
_qN = 1.0 / _qN
}
_EN._yF._f3 = _qN * _mk;
_EN._mN._f3 = -_qN * _W9;
_EN._yF._Cc = 0.0;
_EN._yF._g3 = -_qN * _I3;
_EN._mN._g3 = _qN * _kb;
_EN._mN._Cc = 0.0;
_EN._yN._f3 = 0.0;
_EN._yN._g3 = 0.0;
_EN._yN._Cc = 0.0
},
_FN: function(_EN) {
var _qN = _AN(this._yF, _BN(this._mN, this._yN));
if (_qN != 0.0) {
_qN = 1.0 / _qN
}
var _sN = this._yF._f3,
_tN = this._mN._f3,
_GN = this._yN._f3;
var _vN = this._mN._g3,
_HN = this._yN._g3;
var _IN = this._yN._Cc;
_EN._yF._f3 = _qN * (_vN * _IN - _HN * _HN);
_EN._yF._g3 = _qN * (_GN * _HN - _tN * _IN);
_EN._yF._Cc = _qN * (_tN * _HN - _GN * _vN);
_EN._mN._f3 = _EN._yF._g3;
_EN._mN._g3 = _qN * (_sN * _IN - _GN * _GN);
_EN._mN._Cc = _qN * (_GN * _tN - _sN * _HN);
_EN._yN._f3 = _EN._yF._Cc;
_EN._yN._g3 = _EN._mN._Cc;
_EN._yN._Cc = _qN * (_sN * _vN - _tN * _tN)
}
};
function _JN(_0b, _I3) {
if (typeof(_I3) !== 'undefined') {
this._9q = _0b;
this._I3 = _I3
} else if (typeof(_0b) !== 'undefined') this._gi(_0b)
}
_JN.prototype = {
_u8: function() {
return new _JN(this._9q, this._I3)
},
_2N: function(_R9) {
this._9q = _R9._9q;
this._I3 = _R9._I3
},
_gi: function(_f3) {
this._9q = _SM(_f3);
this._I3 = _TM(_f3)
},
_nN: function() {
this._9q = 0.0;
this._I3 = 1.0
},
_KN: function() {
return _XM(this._9q, this._I3)
},
_LN: function() {
return new _ZM(this._I3, this._9q)
},
_MN: function() {
return new _ZM( - this._9q, this._I3)
},
_9q: 0,
_I3: 1
};
function _NN(position, _i5) {
this._mv = new _ZM();
this._fu = new _JN();
if (position) {
this._mv._2N(position);
this._fu._2N(_i5)
}
}
_NN.prototype = {
_u8: function() {
var _ON = new _NN(this._mv, this._fu);
return _ON
},
_2N: function(_ON) {
this._mv._2N(_ON._mv);
this._fu._2N(_ON._fu)
},
_nN: function() {
this._mv.__M();
this._fu._nN()
},
_gi: function(position, _0b) {
this._mv._2N(position);
this._fu._gi(_0b)
}
};
function _PN() {
this._QN = new _ZM();
this._RN = new _ZM();
this._I3 = new _ZM()
}
_PN.prototype = {
_2N: function(_SN) {
this._QN._2N(_SN._QN);
this._RN._2N(_SN._RN);
this._I3._2N(_SN._I3);
this._kb = _SN._kb;
this._TN = _SN._TN;
this._UN = _SN._UN
},
_u8: function() {
var _SN = new _PN();
_SN._QN._2N(this._QN);
_SN._RN._2N(this._RN);
_SN._I3._2N(this._I3);
_SN._kb = this._kb;
_SN._TN = this._TN;
_SN._UN = this._UN;
return _SN
},
_VN: function(_ON, _WN) {
_ON._mv._f3 = ((1.0 - _WN) * this._RN._f3) + (_WN * this._I3._f3);
_ON._mv._g3 = ((1.0 - _WN) * this._RN._g3) + (_WN * this._I3._g3);
var _0b = (1.0 - _WN) * this._TN + _WN * this._kb;
_ON._fu._gi(_0b);
_ON._mv._f3 -= _ON._fu._I3 * this._QN._f3 - _ON._fu._9q * this._QN._g3;
_ON._mv._g3 -= _ON._fu._9q * this._QN._f3 + _ON._fu._I3 * this._QN._g3
},
_XN: function(alpha) {
_9M(this._UN < 1.0);
var _WN = (alpha - this._UN) / (1.0 - this._UN);
this._RN._Wh(_ZM._Vo(_WN, _ZM._6N(this._I3, this._RN)));
this._TN += _WN * (this._kb - this._TN);
this._UN = alpha
},
_9N: function() {
var _YN = 2.0 * _eM;
var _mk = _YN * _UM(this._TN / _YN);
this._TN -= _mk;
this._kb -= _mk
},
_TN: 0,
_kb: 0,
_UN: 0
};
function _ZN(_kb, _W9) {
return _kb._f3 * _W9._f3 + _kb._g3 * _W9._g3
}
function __N(_kb, _W9) {
return _kb._f3 * _W9._g3 - _kb._g3 * _W9._f3
}
function _0O(_kb, _9q) {
return new _ZM(_9q * _kb._g3, -_9q * _kb._f3);
}
function _1O(_9q, _kb) {
return new _ZM( - _9q * _kb._g3, _9q * _kb._f3)
}
function _2O(_aM, _xb) {
return new _ZM(_aM._yF._f3 * _xb._f3 + _aM._mN._f3 * _xb._g3, _aM._yF._g3 * _xb._f3 + _aM._mN._g3 * _xb._g3)
}
function _3O(_aM, _xb) {
return new _ZM(_ZN(_xb, _aM._yF), _ZN(_xb, _aM._mN))
}
function _4O(_kb, _W9) {
var _I3 = _ZM._6N(_kb, _W9);
return _I3._7N()
}
function _5O(_kb, _W9) {
var _I3 = _ZM._6N(_kb, _W9);
return _ZN(_I3, _I3)
}
function _AN(_kb, _W9) {
return _kb._f3 * _W9._f3 + _kb._g3 * _W9._g3 + _kb._Cc * _W9._Cc
}
function _BN(_kb, _W9) {
return new _hN(_kb._g3 * _W9._Cc - _kb._Cc * _W9._g3, _kb._Cc * _W9._f3 - _kb._f3 * _W9._Cc, _kb._f3 * _W9._g3 - _kb._g3 * _W9._f3)
}
function _6O(_aM, _pN) {
return new _jN(_2O(_aM, _pN._yF), _2O(_aM, _pN._mN))
}
function _7O(_aM, _pN) {
var _kN = new _ZM(_ZN(_aM._yF, _pN._yF), _ZN(_aM._mN, _pN._yF));
var _lN = new _ZM(_ZN(_aM._yF, _pN._mN), _ZN(_aM._mN, _pN._mN));
return new _jN(_kN, _lN)
}
function _8O(_aM, _xb) {
return _hN._Wh(_hN._Wh(_hN._Vo(_xb._f3, _aM._yF), _hN._Vo(_xb._g3, _aM._mN)), _hN._Vo(_xb._Cc, _aM._yN))
}
function _9O(_aM, _xb) {
return new _ZM(_aM._yF._f3 * _xb._f3 + _aM._mN._f3 * _xb._g3, _aM._yF._g3 * _xb._f3 + _aM._mN._g3 * _xb._g3)
}
function _aO(_fu, _T9) {
var _bO = new _JN();
_bO._9q = _fu._9q * _T9._I3 + _fu._I3 * _T9._9q;
_bO._I3 = _fu._I3 * _T9._I3 - _fu._9q * _T9._9q;
return _bO
}
function _cO(_fu, _T9) {
var _bO = new _JN();
_bO._9q = _fu._I3 * _T9._9q - _fu._9q * _T9._I3;
_bO._I3 = _fu._I3 * _T9._I3 + _fu._9q * _T9._9q;
return _bO
}
function _dO(_fu, _xb) {
return new _ZM(_fu._I3 * _xb._f3 - _fu._9q * _xb._g3, _fu._9q * _xb._f3 + _fu._I3 * _xb._g3)
}
function _eO(_fu, _xb) {
return new _ZM(_fu._I3 * _xb._f3 + _fu._9q * _xb._g3, -_fu._9q * _xb._f3 + _fu._I3 * _xb._g3)
}
function _fO(_gO, _xb) {
return new _ZM((_gO._fu._I3 * _xb._f3 - _gO._fu._9q * _xb._g3) + _gO._mv._f3, (_gO._fu._9q * _xb._f3 + _gO._fu._I3 * _xb._g3) + _gO._mv._g3);
}
function _hO(_gO, _xb) {
var _0k = _xb._f3 - _gO._mv._f3;
var _1k = _xb._g3 - _gO._mv._g3;
var _f3 = (_gO._fu._I3 * _0k + _gO._fu._9q * _1k);
var _g3 = ( - _gO._fu._9q * _0k + _gO._fu._I3 * _1k);
return new _ZM(_f3, _g3)
}
function _iO(_aM, _pN) {
var _jO = new _NN();
_jO._fu = _aO(_aM._fu, _pN._fu);
_jO._mv = _ZM._Wh(_dO(_aM._fu, _pN._mv), _aM._mv);
return _jO
}
function _kO(_aM, _pN) {
var _jO = new _NN();
_jO._fu = _cO(_aM._fu, _pN._fu);
var _lO = _pN._mv._f3 - _aM._mv._f3;
var _mO = _pN._mv._g3 - _aM._mv._g3;
_jO._mv._f3 = _aM._fu._I3 * _lO + _aM._fu._9q * _mO;
_jO._mv._g3 = -_aM._fu._9q * _lO + _aM._fu._I3 * _mO;
return _jO
}
var _nO = Math.abs;
function _oO(_kb) {
return new _ZM(_nO(_kb._f3), _nO(_kb._g3))
}
function _pO(_aM) {
return new _jN(_oO(_aM._yF), _oO(_aM._mN))
}
var _qO = Math.min;
function _rO(_kb, _W9) {
return new _ZM(_qO(_kb._f3, _W9._f3), _qO(_kb._g3, _W9._g3))
}
var _sO = Math.max;
function _tO(_kb, _W9) {
return new _ZM(_sO(_kb._f3, _W9._f3), _sO(_kb._g3, _W9._g3))
}
function _uO(_kb, _si, _ri) {
return _sO(_si, _qO(_kb, _ri))
}
function _vO(_kb, _si, _ri) {
return _tO(_si, _rO(_kb, _ri))
}
function _wO(_f3) {
_f3 |= (_f3 >> 1);
_f3 |= (_f3 >> 2);
_f3 |= (_f3 >> 4);
_f3 |= (_f3 >> 8);
_f3 |= (_f3 >> 16);
return _f3 + 1
}
function _xO(_f3) {
var _8j = _f3 > 0 && (_f3 & (_f3 - 1)) == 0;
return _8j
}
var _yO = 32767;
function _zO(_AO, _BO) {
var _T9 = Math.random();
if (typeof(_AO) !== 'undefined') _T9 = (_BO - _AO) * _T9 + _AO;
else _T9 = 2.0 * _T9 - 1.0;
return _T9
}
function _CO(_T9, _jb, _W9) {
this._T9 = _T9 || 0;
this._jb = _jb || 0;
this._W9 = _W9 || 0
}
_CO.prototype = {
_gi: function(_T9, _jb, _W9) {
this._T9 = _T9;
this._jb = _jb;
this._W9 = _W9
}
};
function _DO() {}
_DO.prototype = {
_EO: function(_ZJ) {
this._FO = _ZJ
},
_GO: function() {
return this._FO
},
_HO: function(_ZJ) {
this._FO |= _ZJ
},
_IO: function(_ZJ) {
this._FO &= ~_ZJ
},
_JO: function(_ZJ) {
this._FO ^= _ZJ;
},
_KO: function(_rb, _LO, _bb) {},
_MO: function(_rb, _LO, _bb) {},
_NO: function(_OO, _PO, _bb) {},
_QO: function(_OO, _PO, _RO, _bb) {},
_SO: function(_TO, _UO, _bb) {},
_VO: function(_ON) {},
_WO: function(_XO, _PO, _YO, _Ea) {},
_FO: 0
};
_DO._ZO = 1;
_DO.__O = 2;
_DO._0P = 4;
_DO._1P = 8;
_DO._2P = 16;
_DO._3P = 32;
_DO._4P = 64;
_DO._5P = 128;
_DO._6P = 256;
_DO._7P = 512;
_DO._8P = 1024;
if (typeof(_SL) === 'undefined') {
window._SL = {
now: function() {
return + new Date()
}
}
}
function _9P() {
this._aP()
}
_9P.prototype = {
_aP: function() {
this._bP = _SL.now()
},
_cP: function() {
return _SL.now() - this._bP;
}
};
function _dP() {
this._eP = 0;
this._OO = new _ZM();
this._fP = 0
}
function _gP() {
this._hP = 0;
this._iP = 0
}
_gP.prototype = {
_u8: function() {},
_jP: function() {
return this._hP
},
_kP: function() {},
_lP: function(_ON, _mv) {},
_mP: function(_4u, _2u, transform, _nP) {},
_oP: function(_pP, _ON, _nP) {},
_qP: function(_rP, _sP) {},
_tP: function(_ON, _mv, _uP, _vP, _nP) {},
_dN: function(_eN) {
var _xr = _eN || {};
_xr['m_type'] = this._hP;
_xr['m_radius'] = this._iP;
return _xr
},
_fN: function(data) {
this._iP = data['m_radius']
}
};
_gP._wP = 0;
_gP._xP = 1;
_gP._yP = 2;
_gP._zP = 3;
_gP._AP = 4;
function _BP() {
this.parent.call(this);
this._hP = _gP._wP;
this._iP = 0;
this._CP = new _ZM();
Object.seal(this)
}
_BP.prototype = {
_u8: function() {
var _DP = new _BP();
_DP._iP = this._iP;
_DP._CP = this._CP._u8();
return _DP
},
_kP: function() {
return 1
},
_lP: function(transform, _mv) {
var _OO = _ZM._Wh(transform._mv, _dO(transform._fu, this._CP));
var _mk = _ZM._6N(_mv, _OO);
return _ZN(_mk, _mk) <= this._iP * this._iP
},
_mP: function(_4u, _2u, transform, _nP) {
var position = _ZM._Wh(transform._mv, _dO(transform._fu, this._CP));
var _9q = _ZM._6N(_2u._TO, position);
var _W9 = _ZN(_9q, _9q) - this._iP * this._iP;
var _T9 = _ZM._6N(_2u._UO, _2u._TO);
var _I3 = _ZN(_9q, _T9);
var _5v = _ZN(_T9, _T9);
var _EP = _I3 * _I3 - _5v * _W9;
if (_EP < 0.0 || _5v < _dM) {
return ! 1
}
var _kb = -(_I3 + _WM(_EP));
if (0.0 <= _kb && _kb <= _2u._FP * _5v) {
_kb /= _5v;
_4u._GP = _kb;
_4u._vP = _ZM._Wh(_9q, _ZM._Vo(_kb, _T9));
_4u._vP._9N();
return ! 0
}
return ! 1
},
_oP: function(_pP, transform, _nP) {
var _0k = transform._mv._f3 + (transform._fu._I3 * this._CP._f3 - transform._fu._9q * this._CP._g3);
var _1k = transform._mv._g3 + (transform._fu._9q * this._CP._f3 + transform._fu._I3 * this._CP._g3);
_pP._HP._f3 = _0k - this._iP;
_pP._HP._g3 = _1k - this._iP;
_pP._IP._f3 = _0k + this._iP;
_pP._IP._g3 = _1k + this._iP
},
_qP: function(_rP, _sP) {
_rP._eP = _sP * _eM * this._iP * this._iP;
_rP._OO = this._CP;
_rP._fP = _rP._eP * (0.5 * this._iP * this._iP + _ZN(this._CP, this._CP))
},
_JP: function(_mk) {
return 0
},
_KP: function(_mk) {
return this._CP
},
_LP: function() {
return 1
},
_MP: function(index) {
_9M(index == 0);
return this._CP
},
_tP: function(transform, _mv, _uP, _vP, _nP) {
var _OO = _ZM._Wh(transform._mv, _dO(transform._fu, this._CP));
var _mk = _ZM._6N(_mv, _OO);
var _NP = _mk._7N();
_uP[0] = _NP - this._iP;
_vP._2N(_ZM._Vo(1 / _NP, _mk))
},
_dN: function(_eN) {
var _xr = _eN || {};
this.parent.prototype._dN.call(this, _xr);
_xr['m_p'] = this._CP._dN();
return _xr
},
_fN: function(data) {
this.parent.prototype._fN.call(this, data);
this._CP._fN(data['m_p'])
}
};
_BP._EL(_gP);
function _OP() {
this.parent.call(this);
this._hP = _gP._xP;
this._iP = _lM;
this._PP = new _ZM();
this._QP = new _ZM();
this._RP = new _ZM();
this._SP = new _ZM();
this._TP = !1;
this._UP = !1;
Object.seal(this)
}
_OP.prototype = {
_gi: function(_hc, _ic) {
this._QP._2N(_hc);
this._RP._2N(_ic);
this._TP = !1;
this._UP = !1
},
_u8: function() {
var _DP = new _OP();
_DP._PP = this._PP._u8();
_DP._QP = this._QP._u8();
_DP._RP = this._RP._u8();
_DP._SP = this._SP._u8();
_DP._TP = this._TP;
_DP._UP = this._UP;
return _DP
},
_kP: function() {
return 1
},
_lP: function(transform, _mv) {
return ! 1
},
_mP: function(_4u, _2u, _ON, _nP) {
var _TO = _eO(_ON._fu, _ZM._6N(_2u._TO, _ON._mv));
var _UO = _eO(_ON._fu, _ZM._6N(_2u._UO, _ON._mv));
var _mk = _ZM._6N(_UO, _TO);
var _hc = this._QP;
var _ic = this._RP;
var e = _ZM._6N(_ic, _hc);
var _vP = new _ZM(e._g3, -e._f3);
_vP._9N();
var _VP = _ZN(_vP, _ZM._6N(_hc, _TO));
var _WP = _ZN(_vP, _mk);
if (_WP == 0.0) {
return ! 1
}
var _V9 = _VP / _WP;
if (_V9 < 0.0 || _2u._FP < _V9) {
return ! 1
}
var _fu = _ZM._Wh(_TO, _ZM._Vo(_V9, _mk));
var _T9 = _ZM._6N(_ic, _hc);
var _5v = _ZN(_T9, _T9);
if (_5v == 0.0) {
return ! 1
}
var _9q = _ZN(_ZM._6N(_fu, _hc), _T9) / _5v;
if (_9q < 0.0 || 1.0 < _9q) {
return ! 1
}
_4u._GP = _V9;
if (_VP > 0.0) {
_4u._vP = _dO(_ON._fu, _vP)._3N()
} else {
_4u._vP = _dO(_ON._fu, _vP)
}
return ! 0
},
_oP: function(_pP, _ON, _nP) {
var _5k = (_ON._fu._I3 * this._QP._f3 - _ON._fu._9q * this._QP._g3) + _ON._mv._f3;
var _8k = (_ON._fu._9q * this._QP._f3 + _ON._fu._I3 * this._QP._g3) + _ON._mv._g3;
var _6k = (_ON._fu._I3 * this._RP._f3 - _ON._fu._9q * this._RP._g3) + _ON._mv._f3;
var _9k = (_ON._fu._9q * this._RP._f3 + _ON._fu._I3 * this._RP._g3) + _ON._mv._g3;
var _XP = _qO(_5k, _6k);
var _YP = _qO(_8k, _9k);
var _ZP = _sO(_5k, _6k);
var __P = _sO(_8k, _9k);
_pP._HP._f3 = _XP - this._iP;
_pP._HP._g3 = _YP - this._iP;
_pP._IP._f3 = _ZP + this._iP;
_pP._IP._g3 = __P + this._iP
},
_qP: function(_rP, _sP) {
_rP._eP = 0.0;
_rP._OO = _ZM._Vo(0.5, _ZM._Wh(this._QP, this._RP));
_rP._fP = 0.0
},
_tP: function(_ON, _mv, _uP, _vP, _nP) {
var _hc = _fO(_ON, this._QP);
var _ic = _fO(_ON, this._RP);
var _mk = _ZM._6N(_mv, _hc);
var _9q = _ZM._6N(_ic, _hc);
var _0Q = _ZN(_mk, _9q);
if (_0Q > 0) {
var _mp = _ZN(_9q, _9q);
if (_0Q > _mp) {
_mk._2N(_ZM._6N(_mv, _ic))
} else {
_mk._6N(_ZM._Vo(_0Q / _mp, _9q))
}
}
var _NP = _mk._7N();
_uP[0] = _NP;
_vP._2N(_NP > 0 ? _ZM._Vo(1 / _NP, _mk) : new _ZM(0, 0))
},
_dN: function(_eN) {
var _xr = _eN || {};
this.parent.prototype._dN.call(this, _xr);
_xr['m_vertex1'] = this._QP._dN();
_xr['m_vertex2'] = this._RP._dN();
_xr['m_hasVertex0'] = this._TP;
if (this._TP) _xr['m_vertex0'] = this._PP._dN();
_xr['m_hasVertex3'] = this._UP;
if (this._UP) _xr['m_vertex3'] = this._SP._dN();
return _xr
},
_fN: function(data) {
this.parent.prototype._fN.call(this, data);
this._QP._fN(data['m_vertex1']);
this._RP._fN(data['m_vertex2']);
this._TP = data['m_hasVertex0'];
if (this._TP) this._PP._fN(data['m_vertex0']);
this._UP = data['m_hasVertex3'];
if (this._UP) this._SP._fN(data['m_vertex3'])
}
};
_OP._EL(_gP);
function _1Q() {
this.parent.call(this);
this._hP = _gP._zP;
this._iP = _lM;
this._2Q = null;
this._3Q = 0;
this._4Q = new _ZM();
this._5Q = new _ZM();
this._6Q = !1;
this._7Q = !1;
Object.seal(this)
}
_1Q._8Q = new _OP();
_1Q.prototype = {
_9Q: function(_rb, _Ea) {
_9M(this._2Q == null && this._3Q == 0);
_9M(_Ea >= 3);
for (var _H3 = 1; _H3 < _Ea; ++_H3) {
var _hc = _rb[_H3 - 1];
var _ic = _rb[_H3];
_9M(_5O(_hc, _ic) > _jM * _jM)
}
this._3Q = _Ea + 1;
this._2Q = new Array(this._3Q);
for (var _H3 = 0; _H3 < _Ea; ++_H3) this._2Q[_H3] = _rb[_H3]._u8();
this._2Q[_Ea] = this._2Q[0]._u8();
this._4Q._2N(this._2Q[this._3Q - 2]);
this._5Q._2N(this._2Q[1]);
this._6Q = !0;
this._7Q = !0
},
_aQ: function(_rb, _Ea) {
_9M(this._2Q == null && this._3Q == 0);
_9M(_Ea >= 2);
for (var _H3 = 1; _H3 < _Ea; ++_H3) {
var _hc = _rb[_H3 - 1];
var _ic = _rb[_H3];
_9M(_5O(_hc, _ic) > _jM * _jM)
}
this._3Q = _Ea;
this._2Q = new Array(_Ea);
for (var _H3 = 0; _H3 < _Ea; ++_H3) this._2Q[_H3] = _rb[_H3]._u8();
this._6Q = !1;
this._7Q = !1;
this._4Q.__M();
this._5Q.__M()
},
_bQ: function(_cQ) {
this._4Q._2N(_cQ);
this._6Q = !0
},
_dQ: function(_eQ) {
this._5Q._2N(_eQ);
this._7Q = !0
},
_u8: function() {
var _DP = new _1Q();
_DP._3Q = this._3Q;
_DP._2Q = new Array(this._3Q);
for (var _H3 = 0; _H3 < this._3Q; ++_H3) _DP._2Q[_H3] = this._2Q[_H3]._u8();
_DP._4Q = this._4Q._u8();
_DP._5Q = this._5Q._u8();
_DP._6Q = this._6Q;
_DP._7Q = this._7Q;
return _DP;
},
_kP: function() {
return this._3Q - 1
},
_fQ: function(_gQ, index) {
_9M(0 <= index && index < this._3Q - 1);
_gQ._hP = _gP._xP;
_gQ._iP = this._iP;
_gQ._QP = this._2Q[index + 0];
_gQ._RP = this._2Q[index + 1];
if (index > 0) {
_gQ._PP = this._2Q[index - 1];
_gQ._TP = !0
} else {
_gQ._PP = this._4Q;
_gQ._TP = this._6Q
}
if (index < this._3Q - 2) {
_gQ._SP = this._2Q[index + 2];
_gQ._UP = !0
} else {
_gQ._SP = this._5Q;
_gQ._UP = this._7Q
}
},
_lP: function(transform, _mv) {
return ! 1
},
_mP: function(_4u, _2u, _ON, _nP) {
_9M(_nP < this._3Q);
var _hQ = _nP;
var _iQ = _nP + 1;
if (_iQ == this._3Q) {
_iQ = 0
}
_1Q._8Q._QP = this._2Q[_hQ]._u8();
_1Q._8Q._RP = this._2Q[_iQ]._u8();
return _1Q._8Q._mP(_4u, _2u, _ON, 0)
},
_oP: function(_pP, _ON, _nP) {
_9M(_nP < this._3Q);
var _hQ = _nP;
var _iQ = _nP + 1;
if (_iQ == this._3Q) {
_iQ = 0
}
var _5k = (_ON._fu._I3 * this._2Q[_hQ]._f3 - _ON._fu._9q * this._2Q[_hQ]._g3) + _ON._mv._f3;
var _8k = (_ON._fu._9q * this._2Q[_hQ]._f3 + _ON._fu._I3 * this._2Q[_hQ]._g3) + _ON._mv._g3;
var _6k = (_ON._fu._I3 * this._2Q[_iQ]._f3 - _ON._fu._9q * this._2Q[_iQ]._g3) + _ON._mv._f3;
var _9k = (_ON._fu._9q * this._2Q[_iQ]._f3 + _ON._fu._I3 * this._2Q[_iQ]._g3) + _ON._mv._g3;
_pP._HP._f3 = _qO(_5k, _6k);
_pP._HP._g3 = _qO(_8k, _9k);
_pP._IP._f3 = _sO(_5k, _6k);
_pP._IP._g3 = _sO(_8k, _9k)
},
_qP: function(_rP, _sP) {
_rP._eP = 0.0;
_rP._OO.__M();
_rP._fP = 0.0
},
_tP: function(_ON, _mv, _uP, _vP, _nP) {
this._fQ(_1Q._8Q, _nP);
_1Q._8Q._tP(_ON, _mv, _uP, _vP, 0)
},
_dN: function(_eN) {
var _xr = _eN || {};
this.parent.prototype._dN.call(this, _xr);
_xr['m_count'] = this._3Q;
_xr['m_vertices'] = [];
for (var _H3 = 0; _H3 < this._3Q; ++_H3) _xr['m_vertices'].push(this._2Q[_H3]._dN());
_xr['m_hasPrevVertex'] = this._6Q;
if (this._6Q) _xr['m_prevVertex'] = this._4Q._dN();
_xr['m_hasNextVertex'] = this._7Q;
if (this._7Q) _xr['m_nextVertex'] = this._5Q._dN();
return _xr
},
_fN: function(data) {
this.parent.prototype._fN.call(this, data);
this._3Q = data['m_count'];
this._2Q = [];
for (var _H3 = 0; _H3 < this._3Q; ++_H3) {
this._2Q[_H3] = new _ZM();
this._2Q[_H3]._fN(data['m_vertices'][_H3])
}
this._6Q = data['m_hasPrevVertex'];
if (this._6Q) this._4Q._fN(data['m_prevVertex']);
this._7Q = data['m_hasNextVertex'];
if (this._7Q) this._5Q._fN(data['m_nextVertex'])
}
};
_1Q._EL(_gP);
function _jQ() {
this.parent.call(this);
this._hP = _gP._yP;
this._iP = _lM;
this._3Q = 0;
this._kQ = new _ZM();
this._2Q = new Array(_gM);
this._lQ = new Array(_gM);
Object.seal(this)
}
_jQ.prototype = {
_u8: function() {
var _DP = new _jQ();
_DP._3Q = this._3Q;
_DP._kQ = this._kQ._u8();
for (var _H3 = 0; _H3 < this._3Q; ++_H3) {
_DP._2Q[_H3] = this._2Q[_H3]._u8();
_DP._lQ[_H3] = this._lQ[_H3]._u8()
}
return _DP
},
_kP: function() {
return 1
},
_gi: function(_rb, _Ea) {
_9M(3 <= _Ea && _Ea <= _gM);
if (_Ea < 3) {
this._mQ(1.0, 1.0);
return
}
var _C9 = _qO(_Ea, _gM);
var _nQ = new Array(_gM);
var _oQ = 0;
for (var _H3 = 0; _H3 < _C9; ++_H3) {
var _xb = _rb[_H3];
var _pQ = !0;
for (var __9 = 0; __9 < _oQ; ++__9) {
if (_5O(_xb, _nQ[__9]) < 0.5 * _jM) {
_pQ = !1;
break
}
}
if (_pQ) {
_nQ[_oQ++] = _xb._u8()
}
}
_C9 = _oQ;
if (_C9 < 3) {
_9M(!1);
this._mQ(1.0, 1.0);
return
}
var _qQ = 0;
var _Lb = _nQ[0]._f3;
for (_H3 = 1; _H3 < _C9; ++_H3) {
var _f3 = _nQ[_H3]._f3;
if (_f3 > _Lb || (_f3 == _Lb && _nQ[_H3]._g3 < _nQ[_qQ]._g3)) {
_qQ = _H3;
_Lb = _f3
}
}
var _rQ = new Array(_gM);
var _F9 = 0;
var _sQ = _qQ;
for (;;) {
_rQ[_F9] = _sQ;
var _tQ = 0;
for (__9 = 1; __9 < _C9; ++__9) {
if (_tQ == _sQ) {
_tQ = __9;
continue
}
var _T9 = _ZM._6N(_nQ[_tQ], _nQ[_rQ[_F9]]);
var _xb = _ZM._6N(_nQ[__9], _nQ[_rQ[_F9]]);
var _I3 = __N(_T9, _xb);
if (_I3 < 0.0) {
_tQ = __9
}
if (_I3 == 0.0 && _xb._8N() > _T9._8N()) {
_tQ = __9
}
}++_F9;
_sQ = _tQ;
if (_tQ == _qQ) {
break
}
}
this._3Q = _F9;
for (_H3 = 0; _H3 < _F9; ++_H3) {
this._2Q[_H3] = _nQ[_rQ[_H3]]._u8()
}
for (_H3 = 0; _H3 < _F9; ++_H3) {
var _hQ = _H3;
var _iQ = _H3 + 1 < _F9 ? _H3 + 1 : 0;
var _gQ = _ZM._6N(this._2Q[_iQ], this._2Q[_hQ]);
_9M(_gQ._8N() > _dM * _dM);
this._lQ[_H3] = _0O(_gQ, 1.0)._u8();
this._lQ[_H3]._9N()
}
this._kQ = _jQ._uQ(this._2Q, _F9)
},
_mQ: function(_vQ, _wQ, _OO, _0b) {
this._3Q = 4;
this._2Q[0] = new _ZM( - _vQ, -_wQ);
this._2Q[1] = new _ZM(_vQ, -_wQ);
this._2Q[2] = new _ZM(_vQ, _wQ);
this._2Q[3] = new _ZM( - _vQ, _wQ);
this._lQ[0] = new _ZM(0.0, -1.0);
this._lQ[1] = new _ZM(1.0, 0.0);
this._lQ[2] = new _ZM(0.0, 1.0);
this._lQ[3] = new _ZM( - 1.0, 0.0);
if (!_OO) return;
this._kQ._2N(_OO);
var _ON = new _NN();
_ON._mv = _OO;
_ON._fu._gi(_0b);
for (var _H3 = 0; _H3 < this._3Q; ++_H3) {
this._2Q[_H3]._2N(_fO(_ON, this._2Q[_H3]));
this._lQ[_H3]._2N(_dO(_ON._fu, this._lQ[_H3]))
}
},
_lP: function(_ON, _mv) {
var _xQ = _eO(_ON._fu, _ZM._6N(_mv, _ON._mv));
for (var _H3 = 0; _H3 < this._3Q; ++_H3) {
var _yQ = _ZN(this._lQ[_H3], _ZM._6N(_xQ, this._2Q[_H3]));
if (_yQ > 0.0) {
return ! 1
}
}
return ! 0
},
_mP: function(_4u, _2u, _ON, _nP) {
var _TO = _eO(_ON._fu, _ZM._6N(_2u._TO, _ON._mv));
var _UO = _eO(_ON._fu, _ZM._6N(_2u._UO, _ON._mv));
var _mk = _ZM._6N(_UO, _TO);
var _Sz = 0.0,
_zQ = _2u._FP;
var index = -1;
for (var _H3 = 0; _H3 < this._3Q; ++_H3) {
var _VP = _ZN(this._lQ[_H3], _ZM._6N(this._2Q[_H3], _TO));
var _WP = _ZN(this._lQ[_H3], _mk);
if (_WP == 0.0) {
if (_VP < 0.0) {
return ! 1
}
} else {
if (_WP < 0.0 && _VP < _Sz * _WP) {
_Sz = _VP / _WP;
index = _H3
} else if (_WP > 0.0 && _VP < _zQ * _WP) {
_zQ = _VP / _WP
}
}
if (_zQ < _Sz) {
return ! 1
}
}
_9M(0.0 <= _Sz && _Sz <= _2u._FP);
if (index >= 0) {
_4u._GP = _Sz;
_4u._vP = _dO(_ON._fu, this._lQ[index]);
return ! 0
}
return ! 1
},
_oP: function(_pP, _ON, _nP) {
var _XP = (_ON._fu._I3 * this._2Q[0]._f3 - _ON._fu._9q * this._2Q[0]._g3) + _ON._mv._f3;
var _YP = (_ON._fu._9q * this._2Q[0]._f3 + _ON._fu._I3 * this._2Q[0]._g3) + _ON._mv._g3;
var _ZP = _XP;
var __P = _YP;
for (var _H3 = 1; _H3 < this._3Q; ++_H3) {
var _AQ = (_ON._fu._I3 * this._2Q[_H3]._f3 - _ON._fu._9q * this._2Q[_H3]._g3) + _ON._mv._f3;
var _BQ = (_ON._fu._9q * this._2Q[_H3]._f3 + _ON._fu._I3 * this._2Q[_H3]._g3) + _ON._mv._g3;
_XP = _qO(_XP, _AQ);
_YP = _qO(_YP, _BQ);
_ZP = _sO(_ZP, _AQ);
__P = _sO(__P, _BQ)
}
_pP._HP._f3 = _XP - this._iP;
_pP._HP._g3 = _YP - this._iP;
_pP._IP._f3 = _ZP + this._iP;
_pP._IP._g3 = __P + this._iP
},
_qP: function(_rP, _sP) {
_9M(this._3Q >= 3);
var _OO = new _ZM(0.0, 0.0);
var _CQ = 0.0;
var _fP = 0.0;
var _9q = new _ZM(0.0, 0.0);
for (var _H3 = 0; _H3 < this._3Q; ++_H3) {
_9q._Wh(this._2Q[_H3])
}
_9q._Vo(1.0 / this._3Q);
var _DQ = 1.0 / 3.0;
for (var _H3 = 0; _H3 < this._3Q; ++_H3) {
var _EQ = _ZM._6N(this._2Q[_H3], _9q);
var _FQ = _H3 + 1 < this._3Q ? _ZM._6N(this._2Q[_H3 + 1], _9q) : _ZM._6N(this._2Q[0], _9q);
var _GQ = __N(_EQ, _FQ);
var _HQ = 0.5 * _GQ;
_CQ += _HQ;
_OO._Wh(_ZM._Vo(_HQ * _DQ, _ZM._Wh(_EQ, _FQ)));
var _IQ = _EQ._f3,
_JQ = _EQ._g3;
var _KQ = _FQ._f3,
_LQ = _FQ._g3;
var _MQ = _IQ * _IQ + _KQ * _IQ + _KQ * _KQ;
var _NQ = _JQ * _JQ + _LQ * _JQ + _LQ * _LQ;
_fP += (0.25 * _DQ * _GQ) * (_MQ + _NQ)
}
_rP._eP = _sP * _CQ;
_9M(_CQ > _dM);
_OO._Vo(1.0 / _CQ);
_rP._OO = _ZM._Wh(_OO, _9q);
_rP._fP = _sP * _fP;
_rP._fP += _rP._eP * (_ZN(_rP._OO, _rP._OO) - _ZN(_OO, _OO))
},
_LP: function() {
return this._3Q
},
_MP: function(index) {
_9M(0 <= index && index < this._3Q);
return this._2Q[index]
},
_OQ: function() {
for (var _H3 = 0; _H3 < this._3Q; ++_H3) {
var _hQ = _H3;
var _iQ = _H3 < this._3Q - 1 ? _hQ + 1 : 0;
var _mv = this._2Q[_hQ];
var e = _ZM._6N(this._2Q[_iQ], _mv);
for (var __9 = 0; __9 < this._3Q; ++__9) {
if (__9 == _hQ || __9 == _iQ) {
continue
}
var _xb = _ZM._6N(this._2Q[__9], _mv);
var _I3 = __N(e, _xb);
if (_I3 < 0.0) {
return ! 1
}
}
}
return ! 0
},
_tP: function(_ON, _mv, _PQ, _vP, _nP) {
var _xQ = _eO(_ON._fu, _ZM._6N(_mv, _ON._mv));
var maxDistance = -Number.MAX_VALUE;
var _QQ = _xQ;
for (var _H3 = 0; _H3 < this._3Q; ++_H3) {
var _yQ = _ZN(this._lQ[_H3], _ZM._6N(_xQ, this._2Q[_H3]));
if (_yQ > maxDistance) {
maxDistance = _yQ;
_QQ = this._lQ[_H3]
}
}
if (maxDistance > 0) {
var _RQ = _QQ;
var _SQ = maxDistance * maxDistance;
for (var _H3 = 0; _H3 < this._3Q; ++_H3) {
var _uP = _ZM._6N(_xQ, this._2Q[_H3]);
var _TQ = _uP._8N();
if (_SQ > _TQ) {
_RQ = _uP;
_SQ = _TQ
}
}
_PQ[0] = _WM(_SQ);
_vP._2N(_dO(_ON._fu, _RQ));
_vP._9N()
} else {
_PQ[0] = maxDistance;
_vP._2N(_dO(_ON._fu, _QQ))
}
},
_dN: function(_eN) {
var _xr = _eN || {};
this.parent.prototype._dN.call(this, _xr);
_xr['m_count'] = this._3Q;
_xr['m_centroid'] = this._kQ._dN();
_xr['m_vertices'] = [];
_xr['m_normals'] = [];
for (var _H3 = 0; _H3 < this._3Q; ++_H3) {
_xr['m_vertices'].push(this._2Q[_H3]._dN());
_xr['m_normals'].push(this._lQ[_H3]._dN())
}
return _xr
},
_fN: function(data) {
this.parent.prototype._fN.call(this, data);
this._3Q = data['m_count'];
this._kQ._fN(data['m_centroid']);
this._2Q = [];
this._lQ = [];
for (var _H3 = 0; _H3 < this._3Q; ++_H3) {
this._2Q[_H3] = new _ZM();
this._2Q[_H3]._fN(data['m_vertices'][_H3]);
this._lQ[_H3] = new _ZM();
this._lQ[_H3]._fN(data['m_normals'][_H3])
}
}
};
_jQ._uQ = function(_UQ, _Ea) {
_9M(_Ea >= 3);
var _I3 = new _ZM();
var _CQ = 0.0;
var _VQ = new _ZM(0.0, 0.0);
var _WQ = 1.0 / 3.0;
for (var _H3 = 0; _H3 < _Ea; ++_H3) {
var _TO = _VQ;
var _UO = _UQ[_H3];
var _XQ = _H3 + 1 < _Ea ? _UQ[_H3 + 1] : _UQ[0];
var _EQ = _ZM._6N(_UO, _TO);
var _FQ = _ZM._6N(_XQ, _TO);
var _GQ = __N(_EQ, _FQ);
var _HQ = 0.5 * _GQ;
_CQ += _HQ;
_I3._Wh(_ZM._Vo(_HQ, _ZM._Vo(_WQ, _ZM._Wh(_ZM._Wh(_TO, _UO), _XQ))))
}
_9M(_CQ > _dM);
_I3._Vo(1.0 / _CQ);
return _I3
};
_jQ._EL(_gP);
function _YQ() {
this._ZQ = 0;
this.__Q = 0
}
function _0R(_1R, _2R) {
if (_1R._ZQ == _2R._ZQ) {
return _1R.__Q - _2R.__Q
}
return _1R._ZQ - _2R._ZQ
}
function _3R() {
this._4R = new _5R();
this._6R = 0;
this._7R = 0;
this._8R = 0;
this._9R = [];
this._aR = 0;
this._bR = []
}
_3R.prototype = {
_cR: function(_pP, _dR) {
var _eR = this._4R._cR(_pP, _dR); ++this._7R;
this._fR(_eR);
return _eR
},
_gR: function(_eR) {
this._hR(_eR); --this._7R;
this._4R._gR(_eR)
},
_iR: function(_eR, _pP, _jR) {
var buffer = this._4R._iR(_eR, _pP, _jR);
if (buffer) {
this._fR(_eR);
}
},
_kR: function(_eR) {
this._fR(_eR)
},
_lR: function(_eR) {
return this._4R._lR(_eR)
},
_mR: function(_eR) {
return this._4R._mR(_eR)
},
_nR: function(_ZQ, __Q) {
var _oR = this._4R._lR(_ZQ);
var _pR = this._4R._lR(__Q);
return _qR(_oR, _pR)
},
_rR: function() {
return this._7R
},
_sR: function(_tR) {
this._8R = 0;
this._9R.length = 0;
for (var _H3 = 0; _H3 < this._aR; ++_H3) {
this._6R = this._bR[_H3];
if (this._6R == _3R._uR) {
continue
}
var _vR = this._4R._lR(this._6R);
this._4R._wR(this, _vR)
}
this._aR = 0;
this._9R.sort(_0R);
var _H3 = 0;
while (_H3 < this._8R) {
var _xR = this._9R[_H3];
var _yR = this._4R._mR(_xR._ZQ);
var _zR = this._4R._mR(_xR.__Q);
_tR._AR(_yR, _zR); ++_H3;
while (_H3 < this._8R) {
var _BR = this._9R[_H3];
if (_BR._ZQ != _xR._ZQ || _BR.__Q != _xR.__Q) {
break
}++_H3
}
}
},
_wR: function(_tR, _pP) {
this._4R._wR(_tR, _pP)
},
_mP: function(_tR, _2u) {
this._4R._mP(_tR, _2u)
},
_CR: function() {
return this._4R._DR()
},
_ER: function() {
return this._4R._FR()
},
_GR: function() {
return this._4R._HR()
},
_IR: function(_JR) {
this._4R._IR(_JR)
},
_fR: function(_eR) {
this._bR[this._aR] = _eR; ++this._aR
},
_hR: function(_eR) {
for (var _H3 = 0; _H3 < this._aR; ++_H3) {
if (this._bR[_H3] == _eR) {
this._bR[_H3] = _3R._uR
}
}
},
_KR: function(_eR) {
if (_eR == this._6R) {
return ! 0
}
this._9R[this._8R] = new _YQ();
this._9R[this._8R]._ZQ = _qO(_eR, this._6R);
this._9R[this._8R].__Q = _sO(_eR, this._6R); ++this._8R;
return ! 0
}
};
_3R._uR = -1;
function _LR() {
this._2Q = null;
this._3Q = 0;
this._iP = 0
}
_LR.prototype = {
_2N: function(_R9) {
this._2Q = _R9._2Q;
this._3Q = _R9._3Q;
this._iP = _R9._iP
},
_gi: function(_DP, index) {
switch (_DP._jP()) {
case _gP._wP:
{
var _MR = _DP;
this._2Q = [_MR._CP];
this._3Q = 1;
this._iP = _MR._iP
}
break;
case _gP._yP:
{
var _NR = _DP;
this._2Q = _NR._2Q;
this._3Q = _NR._3Q;
this._iP = _NR._iP
}
break;
case _gP._zP:
{
var _OR = _DP;
_9M(0 <= index && index < _OR._3Q);
this._2Q = [_OR._2Q[index]];
if (index + 1 < _OR._3Q) {
this._2Q[1] = _OR._2Q[index + 1]
} else {
this._2Q[1] = _OR._2Q[0]
}
this._3Q = 2;
this._iP = _OR._iP
}
break;
case _gP._xP:
{
var _gQ = _DP;
this._2Q = [_gQ._QP, _gQ._RP];
this._3Q = 2;
this._iP = _gQ._iP
}
break;
default:
_9M(!1)
}
},
_JP: function(_Yb, _Zb) {
var _PR = 0;
var _QR = this._2Q[0]._f3 * _Yb + this._2Q[0]._g3 * _Zb;
for (var _H3 = 1; _H3 < this._3Q; ++_H3) {
var value = this._2Q[_H3]._f3 * _Yb + this._2Q[_H3]._g3 * _Zb;
if (value > _QR) {
_PR = _H3;
_QR = value
}
}
return _PR
},
_KP: function(_Yb, _Zb) {
return this._2Q[this._JP(_Yb, _Zb)]
},
_LP: function() {
return this._3Q
},
_MP: function(index) {
_9M(0 <= index && index < this._3Q);
return this._2Q[index]
}
};
function _RR() {
this._SR = 0;
this._Ea = 0;
this._TR = [0, 0, 0];
this._UR = [0, 0, 0]
};
function _VR() {
this._WR = new _LR();
this._XR = new _LR();
this._YR = new _NN();
this._ZR = new _NN();
this.__R = !1
};
function _0S() {
this._1S = new _ZM();
this._2S = new _ZM();
this._uP = 0;
this._3S = 0
};
function _4S() {
this._5S = new _ZM();
this._6S = new _ZM();
this._J3 = new _ZM();
this._kb = 0;
this._TR = 0;
this._UR = 0
}
_4S.prototype = {
_2N: function(_R9) {
this._5S._f3 = _R9._5S._f3;
this._5S._g3 = _R9._5S._g3;
this._6S._f3 = _R9._6S._f3;
this._6S._g3 = _R9._6S._g3;
this._J3._f3 = _R9._J3._f3;
this._J3._g3 = _R9._J3._g3;
this._kb = _R9._kb;
this._TR = _R9._TR;
this._UR = _R9._UR
}
};
function _7S() {
this._8S = [new _4S(), new _4S(), new _4S()];
this._3Q = 0
}
_7S.prototype = {
_9S: function(_Da, _WR, _YR, _XR, _ZR) {
_9M(_Da._Ea <= 3);
this._3Q = _Da._Ea;
var _rb = this._8S;
for (var _H3 = 0; _H3 < this._3Q; ++_H3) {
var _xb = _rb[_H3];
_xb._TR = _Da._TR[_H3];
_xb._UR = _Da._UR[_H3];
var _aS = _WR._MP(_xb._TR);
var _bS = _XR._MP(_xb._UR);
_xb._5S._f3 = (_YR._fu._I3 * _aS._f3 - _YR._fu._9q * _aS._g3) + _YR._mv._f3;
_xb._5S._g3 = (_YR._fu._9q * _aS._f3 + _YR._fu._I3 * _aS._g3) + _YR._mv._g3;
_xb._6S._f3 = (_ZR._fu._I3 * _bS._f3 - _ZR._fu._9q * _bS._g3) + _ZR._mv._f3;
_xb._6S._g3 = (_ZR._fu._9q * _bS._f3 + _ZR._fu._I3 * _bS._g3) + _ZR._mv._g3;
_xb._J3._f3 = _xb._6S._f3 - _xb._5S._f3;
_xb._J3._g3 = _xb._6S._g3 - _xb._5S._g3;
_xb._kb = 0.0
}
if (this._3Q > 1) {
var _cS = _Da._SR;
var _dS = this._eS();
if (_dS < 0.5 * _cS || 2.0 * _cS < _dS || _dS < _dM) {
this._3Q = 0
}
}
if (this._3Q == 0) {
var _xb = _rb[0];
_xb._TR = 0;
_xb._UR = 0;
var _aS = _WR._MP(0);
var _bS = _XR._MP(0);
_xb._5S._f3 = (_YR._fu._I3 * _aS._f3 - _YR._fu._9q * _aS._g3) + _YR._mv._f3;
_xb._5S._g3 = (_YR._fu._9q * _aS._f3 + _YR._fu._I3 * _aS._g3) + _YR._mv._g3;
_xb._6S._f3 = (_ZR._fu._I3 * _bS._f3 - _ZR._fu._9q * _bS._g3) + _ZR._mv._f3;
_xb._6S._g3 = (_ZR._fu._9q * _bS._f3 + _ZR._fu._I3 * _bS._g3) + _ZR._mv._g3;
_xb._J3._f3 = _xb._6S._f3 - _xb._5S._f3;
_xb._J3._g3 = _xb._6S._g3 - _xb._5S._g3;
_xb._kb = 1.0;
this._3Q = 1
}
},
_fS: function(_Da) {
_Da._SR = this._eS();
_Da._Ea = this._3Q;
var _rb = this._8S;
for (var _H3 = 0; _H3 < this._3Q; ++_H3) {
_Da._TR[_H3] = _rb[_H3]._TR;
_Da._UR[_H3] = _rb[_H3]._UR
}
},
_gS: function(_mv) {
switch (this._3Q) {
case 1:
_mv._f3 = -this._8S[0]._J3._f3;
_mv._g3 = -this._8S[0]._J3._g3;
break;
case 2:
{
var _hS = this._8S[1]._J3._f3 - this._8S[0]._J3._f3;
var _iS = this._8S[1]._J3._g3 - this._8S[0]._J3._g3;
var _jS = _hS * -this._8S[0]._J3._g3 - _iS * -this._8S[0]._J3._f3;
if (_jS > 0.0) {
_mv._f3 = -1.0 * _iS;
_mv._g3 = 1.0 * _hS
} else {
_mv._f3 = 1.0 * _iS;
_mv._g3 = -1.0 * _hS
}
}
break;
default:
_9M(!1);
_mv._f3 = _mv._g3 = 0;
break
}
},
_kS: function(_mv) {
switch (this._3Q) {
case 1:
_mv._f3 = this._8S[0]._J3._f3;
_mv._g3 = this._8S[0]._J3._g3;
break;
case 2:
_mv._f3 = (this._8S[0]._kb * this._8S[0]._J3._f3) + (this._8S[1]._kb * this._8S[1]._J3._f3);
_mv._g3 = (this._8S[0]._kb * this._8S[0]._J3._g3) + (this._8S[1]._kb * this._8S[1]._J3._g3);
break;
case 3:
_mv._f3 = _mv._g3 = 0;
break;
default:
_9M(!1);
_mv._f3 = _mv._g3 = 0;
break
}
},
_lS: function(_mS, _nS) {
switch (this._3Q) {
case 1:
_mS._f3 = this._8S[0]._5S._f3;
_mS._g3 = this._8S[0]._5S._g3;
_nS._f3 = this._8S[0]._6S._f3;
_nS._g3 = this._8S[0]._6S._g3;
break;
case 2:
_mS._f3 = (this._8S[0]._kb * this._8S[0]._5S._f3) + (this._8S[1]._kb * this._8S[1]._5S._f3);
_mS._g3 = (this._8S[0]._kb * this._8S[0]._5S._g3) + (this._8S[1]._kb * this._8S[1]._5S._g3);
_nS._f3 = (this._8S[0]._kb * this._8S[0]._6S._f3) + (this._8S[1]._kb * this._8S[1]._6S._f3);
_nS._g3 = (this._8S[0]._kb * this._8S[0]._6S._g3) + (this._8S[1]._kb * this._8S[1]._6S._g3);
break;
case 3:
_mS._f3 = (this._8S[0]._kb * this._8S[0]._5S._f3) + (this._8S[1]._kb * this._8S[1]._5S._f3) + (this._8S[2]._kb * this._8S[2]._5S._f3);
_mS._g3 = (this._8S[0]._kb * this._8S[0]._5S._g3) + (this._8S[1]._kb * this._8S[1]._5S._g3) + (this._8S[2]._kb * this._8S[2]._5S._g3);
_nS._f3 = _mS._f3;
_nS._g3 = _mS._g3;
break;
default:
_9M(!1);
break
}
},
_eS: function() {
switch (this._3Q) {
case 1:
return 0.0;
case 2:
return _4O(this._8S[0]._J3, this._8S[1]._J3);
case 3:
return (this._8S[1]._J3._f3 - this._8S[0]._J3._f3) * (this._8S[2]._J3._g3 - this._8S[0]._J3._g3) - (this._8S[1]._J3._g3 - this._8S[0]._J3._g3) * (this._8S[2]._J3._f3 - this._8S[0]._J3._f3);
default:
_9M(!1);
return 0.0
}
},
_oS: function() {
var _pS = this._8S[0]._J3;
var _qS = this._8S[1]._J3;
var _hS = _qS._f3 - _pS._f3;
var _iS = _qS._g3 - _pS._g3;
var _rS = -(_pS._f3 * _hS + _pS._g3 * _iS);
if (_rS <= 0.0) {
this._8S[0]._kb = 1.0;
this._3Q = 1;
return
}
var _sS = _qS._f3 * _hS + _qS._g3 * _iS;
if (_sS <= 0.0) {
this._8S[1]._kb = 1.0;
this._3Q = 1;
this._8S[0]._2N(this._8S[1]);
return
}
var _tS = 1.0 / (_sS + _rS);
this._8S[0]._kb = _sS * _tS;
this._8S[1]._kb = _rS * _tS;
this._3Q = 2
},
_uS: function() {
var _pS = this._8S[0]._J3;
var _qS = this._8S[1]._J3;
var _vS = this._8S[2]._J3;
var _hS = _qS._f3 - _pS._f3;
var _iS = _qS._g3 - _pS._g3;
var _wS = _pS._f3 * _hS + _pS._g3 * _iS;
var _xS = _qS._f3 * _hS + _qS._g3 * _iS;
var _sS = _xS;
var _rS = -_wS;
var _yS = _vS._f3 - _pS._f3;
var _zS = _vS._g3 - _pS._g3;
var _AS = _pS._f3 * _yS + _pS._g3 * _zS;
var _BS = _vS._f3 * _yS + _vS._g3 * _zS;
var _CS = _BS;
var _DS = -_AS;
var _ES = _vS._f3 - _qS._f3;
var _FS = _vS._g3 - _qS._g3;
var _GS = _qS._f3 * _ES + _qS._g3 * _FS;
var _HS = _vS._f3 * _ES + _vS._g3 * _FS;
var _IS = _HS;
var _JS = -_GS;
var _KS = _hS * _zS - _iS * _yS;
var _LS = _KS * (_qS._f3 * _vS._g3 - _qS._g3 * _vS._f3);
var _MS = _KS * (_vS._f3 * _pS._g3 - _vS._g3 * _pS._f3);
var _NS = _KS * (_pS._f3 * _qS._g3 - _pS._g3 * _qS._f3);
if (_rS <= 0.0 && _DS <= 0.0) {
this._8S[0]._kb = 1.0;
this._3Q = 1;
return;
}
if (_sS > 0.0 && _rS > 0.0 && _NS <= 0.0) {
var _tS = 1.0 / (_sS + _rS);
this._8S[0]._kb = _sS * _tS;
this._8S[1]._kb = _rS * _tS;
this._3Q = 2;
return
}
if (_CS > 0.0 && _DS > 0.0 && _MS <= 0.0) {
var _OS = 1.0 / (_CS + _DS);
this._8S[0]._kb = _CS * _OS;
this._8S[2]._kb = _DS * _OS;
this._3Q = 2;
this._8S[1]._2N(this._8S[2]);
return
}
if (_sS <= 0.0 && _JS <= 0.0) {
this._8S[1]._kb = 1.0;
this._3Q = 1;
this._8S[0]._2N(this._8S[1]);
return
}
if (_CS <= 0.0 && _IS <= 0.0) {
this._8S[2]._kb = 1.0;
this._3Q = 1;
this._8S[0]._2N(this._8S[2]);
return
}
if (_IS > 0.0 && _JS > 0.0 && _LS <= 0.0) {
var _PS = 1.0 / (_IS + _JS);
this._8S[1]._kb = _IS * _PS;
this._8S[2]._kb = _JS * _PS;
this._3Q = 2;
this._8S[0]._2N(this._8S[2]);
return
}
var _QS = 1.0 / (_LS + _MS + _NS);
this._8S[0]._kb = _LS * _QS;
this._8S[1]._kb = _MS * _QS;
this._8S[2]._kb = _NS * _QS;
this._3Q = 3
}
};
var _RS = new _7S();
var _SS = new _ZM();
var _TS = new _ZM();
function _US(_4u, _Da, _2u) {++_US._VS;
var _WR = _2u._WR;
var _XR = _2u._XR;
var _YR = _2u._YR;
var _ZR = _2u._ZR;
_RS._9S(_Da, _WR, _YR, _XR, _ZR);
var _rb = _RS._8S;
var _WS = 20;
var _XS = [0, 0, 0],
_YS = [0, 0, 0];
var _ZS = 0;
var __S = _cM;
var _0T = __S;
var _1T = 0;
while (_1T < _WS) {
_ZS = _RS._3Q;
for (var _H3 = 0; _H3 < _ZS; ++_H3) {
_XS[_H3] = _rb[_H3]._TR;
_YS[_H3] = _rb[_H3]._UR
}
switch (_RS._3Q) {
case 1:
break;
case 2:
_RS._oS();
break;
case 3:
_RS._uS();
break;
default:
_9M(!1)
}
if (_RS._3Q == 3) {
break
}
_RS._kS(_TS);
_0T = _TS._8N();
if (_0T >= __S) {}
__S = _0T;
_RS._gS(_TS);
if (_TS._8N() < _dM * _dM) {
break
}
var _2T = _rb[_RS._3Q];
_2T._TR = _WR._JP(_YR._fu._I3 * -_TS._f3 + _YR._fu._9q * -_TS._g3, -_YR._fu._9q * -_TS._f3 + _YR._fu._I3 * -_TS._g3);
var _3T = _WR._MP(_2T._TR);
_2T._5S._f3 = (_YR._fu._I3 * _3T._f3 - _YR._fu._9q * _3T._g3) + _YR._mv._f3;
_2T._5S._g3 = (_YR._fu._9q * _3T._f3 + _YR._fu._I3 * _3T._g3) + _YR._mv._g3;
_2T._UR = _XR._JP(_ZR._fu._I3 * _TS._f3 + _ZR._fu._9q * _TS._g3, -_ZR._fu._9q * _TS._f3 + _ZR._fu._I3 * _TS._g3);
var _4T = _XR._MP(_2T._UR);
_2T._6S._f3 = (_ZR._fu._I3 * _4T._f3 - _ZR._fu._9q * _4T._g3) + _ZR._mv._f3;
_2T._6S._g3 = (_ZR._fu._9q * _4T._f3 + _ZR._fu._I3 * _4T._g3) + _ZR._mv._g3;
_2T._J3._f3 = _2T._6S._f3 - _2T._5S._f3;
_2T._J3._g3 = _2T._6S._g3 - _2T._5S._g3; ++_1T; ++_US._5T;
var _6T = !1;
for (var _H3 = 0; _H3 < _ZS; ++_H3) {
if (_2T._TR == _XS[_H3] && _2T._UR == _YS[_H3]) {
_6T = !0;
break
}
}
if (_6T) {
break
}++_RS._3Q
}
_US._7T = _sO(_US._7T, _1T);
_RS._lS(_4u._1S, _4u._2S);
_4u._uP = _4O(_4u._1S, _4u._2S);
_4u._3S = _1T;
_RS._fS(_Da);
if (_2u.__R) {
var _8T = _WR._iP;
var _9T = _XR._iP;
if (_4u._uP > _8T + _9T && _4u._uP > _dM) {
_4u._uP -= _8T + _9T;
_SS._f3 = _4u._2S._f3 - _4u._1S._f3;
_SS._g3 = _4u._2S._g3 - _4u._1S._g3;
_SS._9N();
_4u._1S._f3 += (_8T * _SS._f3);
_4u._1S._g3 += (_8T * _SS._g3);
_4u._2S._f3 -= (_9T * _SS._f3);
_4u._2S._g3 -= (_9T * _SS._g3)
} else {
var _0k = (0.5 * (_4u._1S._f3 + _4u._2S._f3));
var _1k = (0.5 * (_4u._1S._g3 + _4u._2S._g3));
_4u._1S._f3 = _0k;
_4u._1S._g3 = _1k;
_4u._2S._f3 = _0k;
_4u._2S._g3 = _1k;
_4u._uP = 0.0
}
}
}
_US._VS = 0;
_US._5T = 0;
_US._7T = 0;
var _aT = 255;
function _bT() {}
_bT.prototype = {
_TR: 0,
_UR: 0,
_cT: 0,
_dT: 0,
_aP: function() {
this._TR = this._UR = this._cT = this._dT = 0
},
_Gh: function() {
return this._TR | (this._UR << 8) | (this._cT << 16) | (this._dT << 24)
},
_2N: function(_eT) {
this._TR = _eT._TR;
this._UR = _eT._UR;
this._cT = _eT._cT;
this._dT = _eT._dT
}
};
_bT._fT = 0;
_bT._gT = 1;
function _hT() {
this._iT = new _ZM();
this._jT = 0;
this._kT = 0;
this.id = new _bT()
};
_hT.prototype = {
_u8: function() {
var _lT = new _hT();
_lT._iT._f3 = this._iT._f3;
_lT._iT._g3 = this._iT._g3;
_lT._jT = this._jT;
_lT._kT = this._kT;
_lT.id._2N(this.id);
return _lT
}
};
function _mT() {
this._e3 = new Array(_fM);
this._nT = new _ZM();
this._iT = new _ZM();
this.type = 0;
this._oT = 0
};
_mT.prototype = {
_u8: function() {
var _pT = new _mT();
_pT._oT = this._oT;
_pT.type = this.type;
_pT._iT._f3 = this._iT._f3;
_pT._iT._g3 = this._iT._g3;
_pT._nT._f3 = this._nT._f3;
_pT._nT._g3 = this._nT._g3;
for (var _H3 = 0; _H3 < this._oT; ++_H3) _pT._e3[_H3] = this._e3[_H3]._u8();
return _pT
},
_2N: function(_pT) {
this._oT = _pT._oT;
this.type = _pT.type;
this._iT._f3 = _pT._iT._f3;
this._iT._g3 = _pT._iT._g3;
this._nT._f3 = _pT._nT._f3;
this._nT._g3 = _pT._nT._g3;
for (var _H3 = 0; _H3 < this._oT; ++_H3) this._e3[_H3] = _pT._e3[_H3]._u8()
}
};
_mT._qT = 0;
_mT._rT = 1;
_mT._sT = 2;
_mT._tT = 0;
_mT._uT = 1;
_mT._vT = 2;
_mT._wT = 3;
function _xT() {
this._vP = new _ZM();
this._e3 = new Array(_fM);
this._yT = new Array(_fM)
}
_xT.prototype = {
_zT: function(_pT, _AT, _BT, _CT, _DT) {
if (_pT._oT == 0) {
return
}
switch (_pT.type) {
case _mT._qT:
{
this._vP._f3 = 1;
this._vP._g3 = 0;
var _ET = (_AT._fu._I3 * _pT._iT._f3 - _AT._fu._9q * _pT._iT._g3) + _AT._mv._f3;
var _FT = (_AT._fu._9q * _pT._iT._f3 + _AT._fu._I3 * _pT._iT._g3) + _AT._mv._g3;
var _GT = (_CT._fu._I3 * _pT._e3[0]._iT._f3 - _CT._fu._9q * _pT._e3[0]._iT._g3) + _CT._mv._f3;
var _HT = (_CT._fu._9q * _pT._e3[0]._iT._f3 + _CT._fu._I3 * _pT._e3[0]._iT._g3) + _CT._mv._g3;
var _IT = _ET - _GT;
var _JT = _FT - _HT;
if ((_IT * _IT + _JT * _JT) > _dM * _dM) {
this._vP._f3 = _GT - _ET;
this._vP._g3 = _HT - _FT;
this._vP._9N()
}
var _KT = _ET + (_BT * this._vP._f3);
var _LT = _FT + (_BT * this._vP._g3);
var _MT = _GT - (_DT * this._vP._f3);
var _NT = _HT - (_DT * this._vP._g3);
this._e3[0] = new _ZM(0.5 * (_KT + _MT), 0.5 * (_LT + _NT));
this._yT[0] = (_MT - _KT) * this._vP._f3 + (_NT - _LT) * this._vP._g3
}
break;
case _mT._rT:
{
this._vP._f3 = _AT._fu._I3 * _pT._nT._f3 - _AT._fu._9q * _pT._nT._g3;
this._vP._g3 = _AT._fu._9q * _pT._nT._f3 + _AT._fu._I3 * _pT._nT._g3;
var _OT = (_AT._fu._I3 * _pT._iT._f3 - _AT._fu._9q * _pT._iT._g3) + _AT._mv._f3;
var _PT = (_AT._fu._9q * _pT._iT._f3 + _AT._fu._I3 * _pT._iT._g3) + _AT._mv._g3;
for (var _H3 = 0; _H3 < _pT._oT; ++_H3) {
var _QT = (_CT._fu._I3 * _pT._e3[_H3]._iT._f3 - _CT._fu._9q * _pT._e3[_H3]._iT._g3) + _CT._mv._f3;
var _RT = (_CT._fu._9q * _pT._e3[_H3]._iT._f3 + _CT._fu._I3 * _pT._e3[_H3]._iT._g3) + _CT._mv._g3;
var _mk = (_QT - _OT) * this._vP._f3 + (_RT - _PT) * this._vP._g3;
var _KT = _QT + ((_BT - _mk) * this._vP._f3);
var _LT = _RT + ((_BT - _mk) * this._vP._g3);
var _MT = (_QT - (_DT * this._vP._f3));
var _NT = (_RT - (_DT * this._vP._g3));
this._e3[_H3] = new _ZM(0.5 * (_KT + _MT), 0.5 * (_LT + _NT));
this._yT[_H3] = (_MT - _KT) * this._vP._f3 + (_NT - _LT) * this._vP._g3;
}
}
break;
case _mT._sT:
{
this._vP._f3 = _CT._fu._I3 * _pT._nT._f3 - _CT._fu._9q * _pT._nT._g3;
this._vP._g3 = _CT._fu._9q * _pT._nT._f3 + _CT._fu._I3 * _pT._nT._g3;
var _OT = (_CT._fu._I3 * _pT._iT._f3 - _CT._fu._9q * _pT._iT._g3) + _CT._mv._f3;
var _PT = (_CT._fu._9q * _pT._iT._f3 + _CT._fu._I3 * _pT._iT._g3) + _CT._mv._g3;
for (var _H3 = 0; _H3 < _pT._oT; ++_H3) {
var _QT = (_AT._fu._I3 * _pT._e3[_H3]._iT._f3 - _AT._fu._9q * _pT._e3[_H3]._iT._g3) + _AT._mv._f3;
var _RT = (_AT._fu._9q * _pT._e3[_H3]._iT._f3 + _AT._fu._I3 * _pT._e3[_H3]._iT._g3) + _AT._mv._g3;
var _mk = (_QT - _OT) * this._vP._f3 + (_RT - _PT) * this._vP._g3;
var _MT = _QT + ((_DT - _mk) * this._vP._f3);
var _NT = _RT + ((_DT - _mk) * this._vP._g3);
var _KT = (_QT - (_BT * this._vP._f3));
var _LT = (_RT - (_BT * this._vP._g3));
this._e3[_H3] = new _ZM(0.5 * (_KT + _MT), 0.5 * (_LT + _NT));
this._yT[_H3] = (_KT - _MT) * this._vP._f3 + (_LT - _NT) * this._vP._g3
}
this._vP._f3 = -this._vP._f3;
this._vP._g3 = -this._vP._g3
}
break
}
}
};
function _ST(_TT, _UT, _VT, _WT) {
for (var _H3 = 0; _H3 < _fM; ++_H3) {
_TT[_H3] = _mT._tT;
_UT[_H3] = _mT._tT
}
for (var _H3 = 0; _H3 < _VT._oT; ++_H3) {
var id = _VT._e3[_H3].id;
_TT[_H3] = _mT._wT;
for (var __9 = 0; __9 < _WT._oT; ++__9) {
if (_WT._e3[__9].id._Gh() == id._Gh()) {
_TT[_H3] = _mT._vT;
break
}
}
}
for (var _H3 = 0; _H3 < _WT._oT; ++_H3) {
var id = _WT._e3[_H3].id;
_UT[_H3] = _mT._uT;
for (var __9 = 0; __9 < _VT._oT; ++__9) {
if (_VT._e3[__9].id._Gh() == id._Gh()) {
_UT[_H3] = _mT._vT;
break
}
}
}
}
function _XT() {
this._xb = new _ZM();
this.id = new _bT()
};
function _YT() {
this._TO = new _ZM(),
this._UO = new _ZM();
this._FP = 0
};
function _ZT() {
this._vP = new _ZM();
this._GP = 0
};
function __T() {
this._HP = new _ZM();
this._IP = new _ZM()
}
__T.prototype = {
_2N: function(_0U) {
this._HP._f3 = _0U._HP._f3;
this._HP._g3 = _0U._HP._g3;
this._IP._f3 = _0U._IP._f3;
this._IP._g3 = _0U._IP._g3
},
_u8: function() {
var _1U = new __T();
_1U._HP._f3 = this._HP._f3;
_1U._HP._g3 = this._HP._g3;
_1U._IP._f3 = this._IP._f3;
_1U._IP._g3 = this._IP._g3;
return _1U
},
_bN: function() {
return (this._IP._f3 - this._HP._f3) >= 0.0 && (this._IP._g3 - this._HP._g3) >= 0.0 && this._HP._bN() && this._IP._bN()
},
_2U: function() {
return new _ZM(0.5 * (this._HP._f3 + this._IP._f3), 0.5 * (this._HP._g3 + this._IP._g3))
},
_3U: function() {
return new _ZM(0.5 * (this._IP._f3 - this._HP._f3), 0.5 * (this._IP._g3 - this._HP._g3))
},
_4U: function() {
return 2.0 * ((this._IP._f3 - this._HP._f3) + (this._IP._g3 - this._HP._g3))
},
_5U: function(_6U, _7U) {
if (_7U) {
this._HP._f3 = _qO(_6U._HP._f3, _7U._HP._f3);
this._HP._g3 = _qO(_6U._HP._g3, _7U._HP._g3);
this._IP._f3 = _sO(_6U._IP._f3, _7U._IP._f3);
this._IP._g3 = _sO(_6U._IP._g3, _7U._IP._g3)
} else {
this._HP._f3 = _qO(this._HP._f3, _6U._HP._f3);
this._HP._g3 = _qO(this._HP._g3, _6U._HP._g3);
this._IP._f3 = _sO(this._IP._f3, _6U._IP._f3);
this._IP._g3 = _sO(this._IP._g3, _6U._IP._g3)
}
},
_8U: function(_pP) {
return this._HP._f3 <= _pP._HP._f3 && this._HP._g3 <= _pP._HP._g3 && _pP._IP._f3 <= this._IP._f3 && _pP._IP._g3 <= this._IP._g3
},
_mP: function(_4u, _2u) {
var _9U = -_cM;
var _aU = _cM;
var _mv = _2u._TO;
var _mk = _ZM._6N(_2u._UO, _2u._TO);
var _bU = _oO(_mk);
var _vP = new _ZM();
for (var _H3 = 0; _H3 < 2; ++_H3) {
if (_bU._4N(_H3) < _dM) {
if (_mv._4N(_H3) < this._HP._4N(_H3) || this._IP._4N(_H3) < _mv._4N(_H3)) {
return ! 1
}
} else {
var _cU = 1.0 / _mk._4N(_H3);
var _dU = (this._HP._4N(_H3) - _mv._4N(_H3)) * _cU;
var _eU = (this._IP._4N(_H3) - _mv._4N(_H3)) * _cU;
var _9q = -1.0;
if (_dU > _eU) {
var _Fv = _eU;
_eU = _dU;
_dU = _Fv;
_9q = 1.0
}
if (_dU > _9U) {
_vP._f3 = _vP._g3 = 0;
_vP._5N(_H3, _9q);
_9U = _dU
}
_aU = _qO(_aU, _eU);
if (_9U > _aU) {
return ! 1
}
}
}
if (_9U < 0.0 || _2u._FP < _9U) {
return ! 1
}
_4u._GP = _9U;
_4u._vP._f3 = _vP._f3;
_4u._vP._g3 = _vP._g3;
return ! 0;
}
};
function _fU(_pT, _gU, _AT, _hU, _CT) {
_pT._oT = 0;
var _mS = _fO(_AT, _gU._CP);
var _nS = _fO(_CT, _hU._CP);
var _Yb = _nS._f3 - _mS._f3;
var _Zb = _nS._g3 - _mS._g3;
var _iU = _Yb * _Yb + _Zb * _Zb;
var _8T = _gU._iP,
_9T = _hU._iP;
var _PO = _8T + _9T;
if (_iU > _PO * _PO) {
return
}
_pT.type = _mT._qT;
_pT._iT._f3 = _gU._CP._f3;
_pT._iT._g3 = _gU._CP._g3;
_pT._nT._f3 = _pT._nT._g3 = 0;
_pT._oT = 1;
_pT._e3[0] = new _hT();
_pT._e3[0]._iT._f3 = _hU._CP._f3;
_pT._e3[0]._iT._g3 = _hU._CP._g3;
_pT._e3[0].id._aP()
}
function _jU(_pT, _kU, _AT, _hU, _CT) {
_pT._oT = 0;
var _I3 = _fO(_CT, _hU._CP);
var _lU = _hO(_AT, _I3);
var _mU = 0;
var _nU = -_cM;
var _PO = _kU._iP + _hU._iP;
var _LO = _kU._3Q;
var _rb = _kU._2Q;
var _oU = _kU._lQ;
for (var _H3 = 0; _H3 < _LO; ++_H3) {
var _9q = _oU[_H3]._f3 * (_lU._f3 - _rb[_H3]._f3) + _oU[_H3]._g3 * (_lU._g3 - _rb[_H3]._g3);
if (_9q > _PO) {
return
}
if (_9q > _nU) {
_nU = _9q;
_mU = _H3
}
}
var _pU = _mU;
var _qU = _pU + 1 < _LO ? _pU + 1 : 0;
var _hc = _rb[_pU];
var _ic = _rb[_qU];
if (_nU < _dM) {
_pT._oT = 1;
_pT.type = _mT._rT;
_pT._nT._f3 = _oU[_mU]._f3;
_pT._nT._g3 = _oU[_mU]._g3;
_pT._iT._f3 = 0.5 * (_hc._f3 + _ic._f3);
_pT._iT._g3 = 0.5 * (_hc._g3 + _ic._g3);
_pT._e3[0] = new _hT();
_pT._e3[0]._iT._f3 = _hU._CP._f3;
_pT._e3[0]._iT._g3 = _hU._CP._g3;
_pT._e3[0].id._aP();
return
}
var _rU = (_lU._f3 - _hc._f3) * (_ic._f3 - _hc._f3) + (_lU._g3 - _hc._g3) * (_ic._g3 - _hc._g3);
var _sU = (_lU._f3 - _ic._f3) * (_hc._f3 - _ic._f3) + (_lU._g3 - _ic._g3) * (_hc._g3 - _ic._g3);
if (_rU <= 0.0) {
if (_5O(_lU, _hc) > _PO * _PO) {
return
}
_pT._oT = 1;
_pT.type = _mT._rT;
_pT._nT._f3 = _lU._f3 - _hc._f3;
_pT._nT._g3 = _lU._g3 - _hc._g3;
_pT._nT._9N();
_pT._iT._f3 = _hc._f3;
_pT._iT._g3 = _hc._g3;
_pT._e3[0] = new _hT();
_pT._e3[0]._iT._f3 = _hU._CP._f3;
_pT._e3[0]._iT._g3 = _hU._CP._g3;
_pT._e3[0].id._aP()
} else if (_sU <= 0.0) {
if (_5O(_lU, _ic) > _PO * _PO) {
return
}
_pT._oT = 1;
_pT.type = _mT._rT;
_pT._nT._f3 = _lU._f3 - _ic._f3;
_pT._nT._g3 = _lU._g3 - _ic._g3;
_pT._nT._9N();
_pT._iT._f3 = _ic._f3;
_pT._iT._g3 = _ic._g3;
_pT._e3[0] = new _hT();
_pT._e3[0]._iT._f3 = _hU._CP._f3;
_pT._e3[0]._iT._g3 = _hU._CP._g3;
_pT._e3[0].id._aP()
} else {
var _tU = 0.5 * (_hc._f3 + _ic._f3);
var _uU = 0.5 * (_hc._g3 + _ic._g3);
var _nU = (_lU._f3 - _tU) * _oU[_pU]._f3 + (_lU._g3 - _uU) * _oU[_pU]._g3;
if (_nU > _PO) {
return
}
_pT._oT = 1;
_pT.type = _mT._rT;
_pT._nT._f3 = _oU[_pU]._f3;
_pT._nT._g3 = _oU[_pU]._g3;
_pT._iT._f3 = _tU;
_pT._iT._g3 = _uU;
_pT._e3[0] = new _hT();
_pT._e3[0]._iT._f3 = _hU._CP._f3;
_pT._e3[0]._iT._g3 = _hU._CP._g3;
_pT._e3[0].id._aP()
}
}
function _vU(_wU, _xU, _yU, _zU, _AU) {
var _BU = _xU._3Q;
var _CU = _zU._3Q;
var _DU = _xU._lQ;
var _EU = _xU._2Q;
var _FU = _zU._2Q;
var _ON = _kO(_AU, _yU);
var _PR = 0;
var _GU = -_cM;
for (var _H3 = 0; _H3 < _BU; ++_H3) {
var _Jc = _ON._fu._I3 * _DU[_H3]._f3 - _ON._fu._9q * _DU[_H3]._g3;
var _Kc = _ON._fu._9q * _DU[_H3]._f3 + _ON._fu._I3 * _DU[_H3]._g3;
var _5k = (_ON._fu._I3 * _EU[_H3]._f3 - _ON._fu._9q * _EU[_H3]._g3) + _ON._mv._f3;
var _8k = (_ON._fu._9q * _EU[_H3]._f3 + _ON._fu._I3 * _EU[_H3]._g3) + _ON._mv._g3;
var _HU = _cM;
for (var __9 = 0; __9 < _CU; ++__9) {
var _IU = _Jc * (_FU[__9]._f3 - _5k) + _Kc * (_FU[__9]._g3 - _8k);
if (_IU < _HU) {
_HU = _IU
}
}
if (_HU > _GU) {
_GU = _HU;
_PR = _H3
}
}
_wU[0] = _PR;
return _GU
}
function _JU(_I3, _xU, _yU, _KU, _zU, _AU) {
var _LU = _xU._lQ;
var _CU = _zU._3Q;
var _MU = _zU._2Q;
var _NU = _zU._lQ;
_9M(0 <= _KU && _KU < _xU._3Q);
var _OU = _yU._fu._I3 * _LU[_KU]._f3 - _yU._fu._9q * _LU[_KU]._g3;
var _PU = _yU._fu._9q * _LU[_KU]._f3 + _yU._fu._I3 * _LU[_KU]._g3;
var _QU = _AU._fu._I3 * _OU + _AU._fu._9q * _PU;
var _RU = -_AU._fu._9q * _OU + _AU._fu._I3 * _PU;
var index = 0;
var _SU = _cM;
for (var _H3 = 0; _H3 < _CU; ++_H3) {
var _yQ = _QU * _NU[_H3]._f3 + _RU * _NU[_H3]._g3;
if (_yQ < _SU) {
_SU = _yQ;
index = _H3
}
}
var _hQ = index;
var _iQ = _hQ + 1 < _CU ? _hQ + 1 : 0;
_I3[0]._xb._f3 = (_AU._fu._I3 * _MU[_hQ]._f3 - _AU._fu._9q * _MU[_hQ]._g3) + _AU._mv._f3;
_I3[0]._xb._g3 = (_AU._fu._9q * _MU[_hQ]._f3 + _AU._fu._I3 * _MU[_hQ]._g3) + _AU._mv._g3;
_I3[0].id._TR = _KU;
_I3[0].id._UR = _hQ;
_I3[0].id._cT = _bT._gT;
_I3[0].id._dT = _bT._fT;
_I3[1]._xb._f3 = (_AU._fu._I3 * _MU[_iQ]._f3 - _AU._fu._9q * _MU[_iQ]._g3) + _AU._mv._f3;
_I3[1]._xb._g3 = (_AU._fu._9q * _MU[_iQ]._f3 + _AU._fu._I3 * _MU[_iQ]._g3) + _AU._mv._g3;
_I3[1].id._TR = _KU;
_I3[1].id._UR = _iQ;
_I3[1].id._cT = _bT._gT;
_I3[1].id._dT = _bT._fT
}
function _TU(_pT, _UU, _AT, _VU, _CT) {
_pT._oT = 0;
var _WU = _UU._iP + _VU._iP;
var _XU = [0];
var _YU = _vU(_XU, _UU, _AT, _VU, _CT);
if (_YU > _WU) return;
var _ZU = [0];
var __U = _vU(_ZU, _VU, _CT, _UU, _AT);
if (__U > _WU) return;
var _xU;
var _zU;
var _yU, _AU;
var _KU = 0;
var _0V = 0;
var _1V = 0.1 * _jM;
if (__U > _YU + _1V) {
_xU = _VU;
_zU = _UU;
_yU = _CT;
_AU = _AT;
_KU = _ZU[0];
_pT.type = _mT._sT;
_0V = 1
} else {
_xU = _UU;
_zU = _VU;
_yU = _AT;
_AU = _CT;
_KU = _XU[0];
_pT.type = _mT._rT;
_0V = 0
}
_JU(_TU._2V, _xU, _yU, _KU, _zU, _AU);
var _BU = _xU._3Q;
var _3V = _xU._2Q;
var _4V = _KU;
var _5V = _KU + 1 < _BU ? _KU + 1 : 0;
var _6V = _3V[_4V];
var _7V = _3V[_5V];
_TU._8V._f3 = _7V._f3 - _6V._f3;
_TU._8V._g3 = _7V._g3 - _6V._g3;
_TU._8V._9N();
var _9V = 1.0 * _TU._8V._g3;
var _aV = -1.0 * _TU._8V._f3;
var _OT = 0.5 * (_6V._f3 + _7V._f3);
var _PT = 0.5 * (_6V._g3 + _7V._g3);
var _bV = _yU._fu._I3 * _TU._8V._f3 - _yU._fu._9q * _TU._8V._g3;
var _cV = _yU._fu._9q * _TU._8V._f3 + _yU._fu._I3 * _TU._8V._g3;
var _dV = 1.0 * _cV;
var _eV = -1.0 * _bV;
_6V = _fO(_yU, _6V);
_7V = _fO(_yU, _7V);
var _fV = _dV * _6V._f3 + _eV * _6V._g3;
var _gV = -(_bV * _6V._f3 + _cV * _6V._g3) + _WU;
var _hV = (_bV * _7V._f3 + _cV * _7V._g3) + _WU;
var _iV = new Array(2);
var _jV = new Array(2);
var _kV;
_kV = _lV(_iV, _TU._2V, -_bV, -_cV, _gV, _4V);
if (_kV < 2) return;
_kV = _lV(_jV, _iV, _bV, _cV, _hV, _5V);
if (_kV < 2) {
return
}
_pT._nT._f3 = _9V;
_pT._nT._g3 = _aV;
_pT._iT._f3 = _OT;
_pT._iT._g3 = _PT;
var _oT = 0;
for (var _H3 = 0; _H3 < _fM; ++_H3) {
var _nU = (_dV * _jV[_H3]._xb._f3 + _eV * _jV[_H3]._xb._g3) - _fV;
if (_nU <= _WU) {
var _mV = _pT._e3[_oT] = new _hT();
_mV._iT._2N(_hO(_AU, _jV[_H3]._xb));
_mV.id._2N(_jV[_H3].id);
if (_0V) {
var _nV = new _bT();
_nV._2N(_mV.id);
_mV.id._TR = _nV._UR;
_mV.id._UR = _nV._TR;
_mV.id._cT = _nV._dT;
_mV.id._dT = _nV._cT
}++_oT
}
}
_pT._oT = _oT
}
_TU._8V = new _ZM();
_TU._2V = [new _XT(), new _XT()];
function _oV(_pT, _XU, _AT, _hU, _CT) {
_pT._oT = 0;
var _pV = _hO(_AT, _fO(_CT, _hU._CP));
var _aM = _XU._QP,
_pN = _XU._RP;
var _yF = _pN._f3 - _aM._f3;
var _mN = _pN._g3 - _aM._g3;
var _vb = _yF * (_pN._f3 - _pV._f3) + _mN * (_pN._g3 - _pV._g3);
var _xb = _yF * (_pV._f3 - _aM._f3) + _mN * (_pV._g3 - _aM._g3);
var _PO = _XU._iP + _hU._iP;
var _nV = new _bT();
_nV._UR = 0;
_nV._dT = _bT._fT;
if (_xb <= 0.0) {
var _qV = _aM;
var _Yb = _pV._f3 - _qV._f3;
var _Zb = _pV._g3 - _qV._g3;
var _Cw = _Yb * _Yb + _Zb * _Zb;
if (_Cw > _PO * _PO) {
return
}
if (_XU._TP) {
var _rV = _XU._PP;
var _sV = _aM;
var _tV = _sV._f3 - _rV._f3;
var _uV = _sV._g3 - _rV._g3;
var _rU = _tV * (_sV._f3 - _pV._f3) + _uV * (_sV._g3 - _pV._g3);
if (_rU > 0.0) {
return
}
}
_nV._TR = 0;
_nV._cT = _bT._fT;
_pT._oT = 1;
_pT.type = _mT._qT;
_pT._nT._f3 = _pT._nT._g3 = 0;
_pT._iT._f3 = _qV._f3;
_pT._iT._g3 = _qV._g3;
_pT._e3[0] = new _hT();
_pT._e3[0].id._2N(_nV);
_pT._e3[0]._iT._f3 = _hU._CP._f3;
_pT._e3[0]._iT._g3 = _hU._CP._g3;
return
}
if (_vb <= 0.0) {
var _qV = _pN;
var _Yb = _pV._f3 - _qV._f3;
var _Zb = _pV._g3 - _qV._g3;
var _Cw = _Yb * _Yb + _Zb * _Zb;
if (_Cw > _PO * _PO) {
return
}
if (_XU._UP) {
var _vV = _XU._SP;
var _wV = _pN;
var _xV = _vV._f3 - _wV._f3;
var _yV = _vV._g3 - _wV._g3;
var _ic = _xV * (_pV._f3 - _wV._f3) + _yV * (_pV._g3 - _wV._g3);
if (_ic > 0.0) {
return
}
}
_nV._TR = 1;
_nV._cT = _bT._fT;
_pT._oT = 1;
_pT.type = _mT._qT;
_pT._nT._f3 = _pT._nT._g3 = 0;
_pT._iT._f3 = _qV._f3;
_pT._iT._g3 = _qV._g3;
_pT._e3[0] = new _hT();
_pT._e3[0].id._2N(_nV);
_pT._e3[0]._iT._f3 = _hU._CP._f3;
_pT._e3[0]._iT._g3 = _hU._CP._g3;
return
}
var _zV = _yF * _yF + _mN * _mN;
_9M(_zV > 0.0);
var _AV = (1.0 / _zV) * ((_vb * _aM._f3) + (_xb * _pN._f3));
var _BV = (1.0 / _zV) * ((_vb * _aM._g3) + (_xb * _pN._g3));
var _Yb = _pV._f3 - _AV;
var _Zb = _pV._g3 - _BV;
var _Cw = _Yb * _Yb + _Zb * _Zb;
if (_Cw > _PO * _PO) {
return
}
var _Jc = -_mN;
var _Kc = _yF;
if (_Jc * (_pV._f3 - _aM._f3) + _Kc * (_pV._g3 - _aM._g3) < 0.0) {
_Jc = -_Jc;
_Kc = -_Kc
}
_nV._TR = 0;
_nV._cT = _bT._gT;
_pT._oT = 1;
_pT.type = _mT._rT;
_pT._nT._f3 = _Jc;
_pT._nT._g3 = _Kc;
_pT._nT._9N();
_pT._iT._f3 = _aM._f3;
_pT._iT._g3 = _aM._g3;
_pT._e3[0] = new _hT();
_pT._e3[0].id._2N(_nV);
_pT._e3[0]._iT._f3 = _hU._CP._f3;
_pT._e3[0]._iT._g3 = _hU._CP._g3
}
function _CV() {
this.type = 0;
this.index = 0;
this._nU = 0
}
_CV._DV = 0;
_CV._EV = 1;
_CV._FV = 2;
function _GV() {
this._rb = new Array(_gM);
this._oU = new Array(_gM);
this._Ea = 0
};
function _HV() {
this._hQ = 0,
this._iQ = 0;
this._hc = new _ZM(),
this._ic = new _ZM();
this._vP = new _ZM();
this._IV = new _ZM();
this._gV = 0;
this._JV = new _ZM();
this._hV = 0
};
function _KV() {
this._LV = new _GV();
this._MV = new _NN();
this._NV = new _ZM();
this._OV = new _ZM(),
this._PV = new _ZM(),
this._QV = new _ZM(),
this._RV = new _ZM();
this._SV = new _ZM(),
this._TV = new _ZM(),
this._UV = new _ZM();
this._VV = new _ZM();
this._WV = 0,
this._XV = 0;
this._YV = new _ZM(),
this._ZV = new _ZM();
this._iP = 0;
this.__V = !1
}
_KV._0W = new _ZM();
_KV._1W = new _ZM();
_KV._2W = new _ZM();
_KV.prototype = {
_3W: function(_pT, _XU, _AT, _4W, _CT) {
this._MV._2N(_kO(_AT, _CT));
this._NV._f3 = (this._MV._fu._I3 * _4W._kQ._f3 - this._MV._fu._9q * _4W._kQ._g3) + this._MV._mv._f3;
this._NV._g3 = (this._MV._fu._9q * _4W._kQ._f3 + this._MV._fu._I3 * _4W._kQ._g3) + this._MV._mv._g3;
this._OV._f3 = _XU._PP._f3;
this._OV._g3 = _XU._PP._g3;
this._PV._f3 = _XU._QP._f3;
this._PV._g3 = _XU._QP._g3;
this._QV._f3 = _XU._RP._f3;
this._QV._g3 = _XU._RP._g3;
this._RV._f3 = _XU._SP._f3;
this._RV._g3 = _XU._SP._g3;
var _5W = _XU._TP;
var _6W = _XU._UP;
_KV._0W._f3 = this._QV._f3 - this._PV._f3;
_KV._0W._g3 = this._QV._g3 - this._PV._g3;
_KV._0W._9N();
this._TV._f3 = _KV._0W._g3;
this._TV._g3 = -_KV._0W._f3;
var _7W = this._TV._f3 * (this._NV._f3 - this._PV._f3) + this._TV._g3 * (this._NV._g3 - this._PV._g3);
var _8W = 0.0,
_9W = 0.0;
var _aW = !1,
_bW = !1;
if (_5W) {
_KV._1W._f3 = this._PV._f3 - this._OV._f3;
_KV._1W._g3 = this._PV._g3 - this._OV._g3;
_KV._1W._9N();
this._SV._f3 = _KV._1W._g3;
this._SV._g3 = -_KV._1W._f3;
_aW = (_KV._1W._f3 * _KV._0W._g3 - _KV._1W._g3 * _KV._0W._f3) >= 0;
_8W = this._SV._f3 * (this._NV._f3 - this._OV._f3) + this._SV._g3 * (this._NV._g3 - this._OV._g3)
}
if (_6W) {
_KV._2W._f3 = this._RV._f3 - this._QV._f3;
_KV._2W._g3 = this._RV._g3 - this._QV._g3;
_KV._2W._9N();
this._UV._f3 = _KV._2W._g3;
this._UV._g3 = -_KV._2W._f3;
_bW = (_KV._0W._f3 * _KV._2W._g3 - _KV._0W._g3 * _KV._2W._f3) > 0.0;
_9W = this._UV._f3 * (this._NV._f3 - this._QV._f3) + this._UV._g3 * (this._NV._g3 - this._QV._g3)
}
if (_5W && _6W) {
if (_aW && _bW) {
this.__V = _8W >= 0.0 || _7W >= 0.0 || _9W >= 0.0;
if (this.__V) {
this._VV._f3 = this._TV._f3;
this._VV._g3 = this._TV._g3;
this._YV._f3 = this._SV._f3;
this._YV._g3 = this._SV._g3;
this._ZV._f3 = this._UV._f3;
this._ZV._g3 = this._UV._g3
} else {
this._VV._f3 = -this._TV._f3;
this._VV._g3 = -this._TV._g3;
this._YV._f3 = -this._TV._f3;
this._YV._g3 = -this._TV._g3;
this._ZV._f3 = -this._TV._f3;
this._ZV._g3 = -this._TV._g3
}
} else if (_aW) {
this.__V = _8W >= 0.0 || (_7W >= 0.0 && _9W >= 0.0);
if (this.__V) {
this._VV._f3 = this._TV._f3;
this._VV._g3 = this._TV._g3;
this._YV._f3 = this._SV._f3;
this._YV._g3 = this._SV._g3;
this._ZV._f3 = this._TV._f3;
this._ZV._g3 = this._TV._g3
} else {
this._VV._f3 = -this._TV._f3;
this._VV._g3 = -this._TV._g3;
this._YV._f3 = -this._UV._f3;
this._YV._g3 = -this._UV._g3;
this._ZV._f3 = -this._TV._f3;
this._ZV._g3 = -this._TV._g3
}
} else if (_bW) {
this.__V = _9W >= 0.0 || (_8W >= 0.0 && _7W >= 0.0);
if (this.__V) {
this._VV._f3 = this._TV._f3;
this._VV._g3 = this._TV._g3;
this._YV._f3 = this._TV._f3;
this._YV._g3 = this._TV._g3;
this._ZV._f3 = this._UV._f3;
this._ZV._g3 = this._UV._g3
} else {
this._VV._f3 = -this._TV._f3;
this._VV._g3 = -this._TV._g3;
this._YV._f3 = -this._TV._f3;
this._YV._g3 = -this._TV._g3;
this._ZV._f3 = -this._SV._f3;
this._ZV._g3 = -this._SV._g3
}
} else {
this.__V = _8W >= 0.0 && _7W >= 0.0 && _9W >= 0.0;
if (this.__V) {
this._VV._f3 = this._TV._f3;
this._VV._g3 = this._TV._g3;
this._YV._f3 = this._TV._f3;
this._YV._g3 = this._TV._g3;
this._ZV._f3 = this._TV._f3;
this._ZV._g3 = this._TV._g3
} else {
this._VV._f3 = -this._TV._f3;
this._VV._g3 = -this._TV._g3;
this._YV._f3 = -this._UV._f3;
this._YV._g3 = -this._UV._g3;
this._ZV._f3 = -this._SV._f3;
this._ZV._g3 = -this._SV._g3
}
}
} else if (_5W) {
if (_aW) {
this.__V = _8W >= 0.0 || _7W >= 0.0;
if (this.__V) {
this._VV._f3 = this._TV._f3;
this._VV._g3 = this._TV._g3;
this._YV._f3 = this._SV._f3;
this._YV._g3 = this._SV._g3;
this._ZV._f3 = -this._TV._f3;
this._ZV._g3 = -this._TV._g3
} else {
this._VV._f3 = -this._TV._f3;
this._VV._g3 = -this._TV._g3;
this._YV._f3 = this._TV._f3;
this._YV._g3 = this._TV._g3;
this._ZV._f3 = -this._TV._f3;
this._ZV._g3 = -this._TV._g3
}
} else {
this.__V = _8W >= 0.0 && _7W >= 0.0;
if (this.__V) {
this._VV._f3 = this._TV._f3;
this._VV._g3 = this._TV._g3;
this._YV._f3 = this._TV._f3;
this._YV._g3 = this._TV._g3;
this._ZV._f3 = -this._TV._f3;
this._ZV._g3 = -this._TV._g3
} else {
this._VV._f3 = -this._TV._f3;
this._VV._g3 = -this._TV._g3;
this._YV._f3 = this._TV._f3;
this._YV._g3 = this._TV._g3;
this._ZV._f3 = -this._SV._f3;
this._ZV._g3 = -this._SV._g3
}
}
} else if (_6W) {
if (_bW) {
this.__V = _7W >= 0.0 || _9W >= 0.0;
if (this.__V) {
this._VV._f3 = this._TV._f3;
this._VV._g3 = this._TV._g3;
this._YV._f3 = -this._TV._f3;
this._YV._g3 = -this._TV._g3;
this._ZV._f3 = this._UV._f3;
this._ZV._g3 = this._UV._g3
} else {
this._VV._f3 = -this._TV._f3;
this._VV._g3 = -this._TV._g3;
this._YV._f3 = -this._TV._f3;
this._YV._g3 = -this._TV._g3;
this._ZV._f3 = this._TV._f3;
this._ZV._g3 = this._TV._g3
}
} else {
this.__V = _7W >= 0.0 && _9W >= 0.0;
if (this.__V) {
this._VV._f3 = this._TV._f3;
this._VV._g3 = this._TV._g3;
this._YV._f3 = -this._TV._f3;
this._YV._g3 = -this._TV._g3;
this._ZV._f3 = this._TV._f3;
this._ZV._g3 = this._TV._g3
} else {
this._VV._f3 = -this._TV._f3;
this._VV._g3 = -this._TV._g3;
this._YV._f3 = -this._UV._f3;
this._YV._g3 = -this._UV._g3;
this._ZV._f3 = this._TV._f3;
this._ZV._g3 = this._TV._g3
}
}
} else {
this.__V = _7W >= 0.0;
if (this.__V) {
this._VV._f3 = this._TV._f3;
this._VV._g3 = this._TV._g3;
this._YV._f3 = -this._TV._f3;
this._YV._g3 = -this._TV._g3;
this._ZV._f3 = -this._TV._f3;
this._ZV._g3 = -this._TV._g3
} else {
this._VV._f3 = -this._TV._f3;
this._VV._g3 = -this._TV._g3;
this._YV._f3 = this._TV._f3;
this._YV._g3 = this._TV._g3;
this._ZV._f3 = this._TV._f3;
this._ZV._g3 = this._TV._g3
}
}
this._LV._Ea = _4W._3Q;
for (var _H3 = 0; _H3 < _4W._3Q; ++_H3) {
this._LV._rb[_H3] = _fO(this._MV, _4W._2Q[_H3]);
this._LV._oU[_H3] = _dO(this._MV._fu, _4W._lQ[_H3])
}
this._iP = 2.0 * _lM;
_pT._oT = 0;
var _cW = this._dW();
if (_cW.type == _CV._DV) {
return
}
if (_cW._nU > this._iP) {
return
}
var _eW = this._fW();
if (_eW.type != _CV._DV && _eW._nU > this._iP) {
return
}
var _gW = 0.98;
var _hW = 0.001;
var _iW = new _CV();
if (_eW.type == _CV._DV) {
_iW = _cW
} else if (_eW._nU > _gW * _cW._nU + _hW) {
_iW = _eW
} else {
_iW = _cW
}
var _tQ = new Array(2);
var _jW = new _HV();
if (_iW.type == _CV._EV) {
_pT.type = _mT._rT;
var _PR = 0;
var _QR = this._VV._f3 * this._LV._oU[0]._f3 + this._VV._g3 * this._LV._oU[0]._g3;
for (var _H3 = 1; _H3 < this._LV._Ea; ++_H3) {
var value = this._VV._f3 * this._LV._oU[_H3]._f3 + this._VV._g3 * this._LV._oU[_H3]._g3;
if (value < _QR) {
_QR = value;
_PR = _H3
}
}
var _hQ = _PR;
var _iQ = _hQ + 1 < this._LV._Ea ? _hQ + 1 : 0;
_tQ[0] = new _XT();
_tQ[0]._xb._f3 = this._LV._rb[_hQ]._f3;
_tQ[0]._xb._g3 = this._LV._rb[_hQ]._g3;
_tQ[0].id._TR = 0;
_tQ[0].id._UR = _hQ;
_tQ[0].id._cT = _bT._gT;
_tQ[0].id._dT = _bT._fT;
_tQ[1] = new _XT();
_tQ[1]._xb._f3 = this._LV._rb[_iQ]._f3;
_tQ[1]._xb._g3 = this._LV._rb[_iQ]._g3;
_tQ[1].id._TR = 0;
_tQ[1].id._UR = _iQ;
_tQ[1].id._cT = _bT._gT;
_tQ[1].id._dT = _bT._fT;
if (this.__V) {
_jW._hQ = 0;
_jW._iQ = 1;
_jW._hc._f3 = this._PV._f3;
_jW._hc._g3 = this._PV._g3;
_jW._ic._f3 = this._QV._f3;
_jW._ic._g3 = this._QV._g3;
_jW._vP._f3 = this._TV._f3;
_jW._vP._g3 = this._TV._g3
} else {
_jW._hQ = 1;
_jW._iQ = 0;
_jW._hc._f3 = this._QV._f3;
_jW._hc._g3 = this._QV._g3;
_jW._ic._f3 = this._PV._f3;
_jW._ic._g3 = this._PV._g3;
_jW._vP._f3 = -this._TV._f3;
_jW._vP._g3 = -this._TV._g3
}
} else {
_pT.type = _mT._sT;
_tQ[0] = new _XT();
_tQ[0]._xb = this._PV;
_tQ[0].id._TR = 0;
_tQ[0].id._UR = _iW.index;
_tQ[0].id._cT = _bT._fT;
_tQ[0].id._dT = _bT._gT;
_tQ[1] = new _XT();
_tQ[1]._xb = this._QV;
_tQ[1].id._TR = 0;
_tQ[1].id._UR = _iW.index;
_tQ[1].id._cT = _bT._fT;
_tQ[1].id._dT = _bT._gT;
_jW._hQ = _iW.index;
_jW._iQ = _jW._hQ + 1 < this._LV._Ea ? _jW._hQ + 1 : 0;
_jW._hc._f3 = this._LV._rb[_jW._hQ]._f3;
_jW._hc._g3 = this._LV._rb[_jW._hQ]._g3;
_jW._ic._f3 = this._LV._rb[_jW._iQ]._f3;
_jW._ic._g3 = this._LV._rb[_jW._iQ]._g3;
_jW._vP._f3 = this._LV._oU[_jW._hQ]._f3;
_jW._vP._g3 = this._LV._oU[_jW._hQ]._g3
}
_jW._IV._f3 = _jW._vP._g3;
_jW._IV._g3 = -_jW._vP._f3;
_jW._JV._f3 = -_jW._IV._f3;
_jW._JV._g3 = -_jW._IV._g3;
_jW._gV = _jW._IV._f3 * _jW._hc._f3 + _jW._IV._g3 * _jW._hc._g3;
_jW._hV = _jW._JV._f3 * _jW._ic._f3 + _jW._JV._g3 * _jW._ic._g3;
var _iV = new Array(2);
var _jV = new Array(2);
var _kV;
_kV = _lV(_iV, _tQ, _jW._IV._f3, _jW._IV._g3, _jW._gV, _jW._hQ);
if (_kV < _fM) {
return;
}
_kV = _lV(_jV, _iV, _jW._JV._f3, _jW._JV._g3, _jW._hV, _jW._iQ);
if (_kV < _fM) {
return
}
if (_iW.type == _CV._EV) {
_pT._nT._f3 = _jW._vP._f3;
_pT._nT._g3 = _jW._vP._g3;
_pT._iT._f3 = _jW._hc._f3;
_pT._iT._g3 = _jW._hc._g3
} else {
_pT._nT._f3 = _4W._lQ[_jW._hQ]._f3;
_pT._nT._g3 = _4W._lQ[_jW._hQ]._g3;
_pT._iT._f3 = _4W._2Q[_jW._hQ]._f3;
_pT._iT._g3 = _4W._2Q[_jW._hQ]._g3
}
var _oT = 0;
for (var _H3 = 0; _H3 < _fM; ++_H3) {
var _nU = _jW._vP._f3 * (_jV[_H3]._xb._f3 - _jW._hc._f3) + _jW._vP._g3 * (_jV[_H3]._xb._g3 - _jW._hc._g3);
if (_nU <= this._iP) {
var _mV = _pT._e3[_oT] = new _hT();
if (_iW.type == _CV._EV) {
_mV._iT._2N(_hO(this._MV, _jV[_H3]._xb));
_mV.id._2N(_jV[_H3].id)
} else {
_mV._iT._f3 = _jV[_H3]._xb._f3;
_mV._iT._g3 = _jV[_H3]._xb._g3;
_mV.id._cT = _jV[_H3].id._dT;
_mV.id._dT = _jV[_H3].id._cT;
_mV.id._TR = _jV[_H3].id._UR;
_mV.id._UR = _jV[_H3].id._TR
}++_oT
}
}
_pT._oT = _oT
},
_dW: function() {
var _RO = new _CV();
_RO.type = _CV._EV;
_RO.index = this.__V ? 0 : 1;
_RO._nU = Number.MAX_VALUE;
for (var _H3 = 0; _H3 < this._LV._Ea; ++_H3) {
var _9q = this._VV._f3 * (this._LV._rb[_H3]._f3 - this._PV._f3) + this._VV._g3 * (this._LV._rb[_H3]._g3 - this._PV._g3);
if (_9q < _RO._nU) {
_RO._nU = _9q
}
}
return _RO
},
_fW: function() {
var _RO = new _CV();
_RO.type = _CV._DV;
_RO.index = -1;
_RO._nU = -Number.MAX_VALUE;
var _kW = -this._VV._g3;
var _lW = this._VV._f3;
for (var _H3 = 0; _H3 < this._LV._Ea; ++_H3) {
var _Jc = -this._LV._oU[_H3]._f3;
var _Kc = -this._LV._oU[_H3]._g3;
var _lp = _Jc * (this._LV._rb[_H3]._f3 - this._PV._f3) + _Kc * (this._LV._rb[_H3]._g3 - this._PV._g3);
var _mp = _Jc * (this._LV._rb[_H3]._f3 - this._QV._f3) + _Kc * (this._LV._rb[_H3]._g3 - this._QV._g3);
var _9q = _qO(_lp, _mp);
if (_9q > this._iP) {
_RO.type = _CV._FV;
_RO.index = _H3;
_RO._nU = _9q;
return _RO
}
if (_Jc * _kW + _Kc * _lW >= 0.0) {
if ((_Jc - this._ZV._f3) * this._VV._f3 + (_Kc - this._ZV._g3) * this._VV._g3 < -_kM) {
continue
}
} else {
if ((_Jc - this._YV._f3) * this._VV._f3 + (_Kc - this._YV._g3) * this._VV._g3 < -_kM) {
continue
}
}
if (_9q > _RO._nU) {
_RO.type = _CV._FV;
_RO.index = _H3;
_RO._nU = _9q
}
}
return _RO
}
};
_KV._mW = 0;
_KV._nW = 1;
_KV._oW = 2;
function _pW(_pT, _XU, _AT, _4W, _CT) {
_pW._qW._3W(_pT, _XU, _AT, _4W, _CT)
}
_pW._qW = new _KV();
function _lV(_rW, _sW, _dV, _eV, _L3, _tW) {
var _uW = 0;
var _vW = (_dV * _sW[0]._xb._f3 + _eV * _sW[0]._xb._g3) - _L3;
var _wW = (_dV * _sW[1]._xb._f3 + _eV * _sW[1]._xb._g3) - _L3;
if (_vW <= 0.0) _rW[_uW++] = _sW[0];
if (_wW <= 0.0) _rW[_uW++] = _sW[1];
if (_vW * _wW < 0.0) {
var _xW = _vW / (_vW - _wW);
_rW[_uW] = new _XT();
_rW[_uW]._xb._f3 = _sW[0]._xb._f3 + (_xW * (_sW[1]._xb._f3 - _sW[0]._xb._f3));
_rW[_uW]._xb._g3 = _sW[0]._xb._g3 + (_xW * (_sW[1]._xb._g3 - _sW[0]._xb._g3));
_rW[_uW].id._TR = _tW;
_rW[_uW].id._UR = _sW[0].id._UR;
_rW[_uW].id._cT = _bT._fT;
_rW[_uW].id._dT = _bT._gT; ++_uW
}
return _uW
}
function _yW(_zW, _TR, _AW, _UR, _AT, _CT) {
_yW._2u._WR._gi(_zW, _TR);
_yW._2u._XR._gi(_AW, _UR);
_yW._2u._YR = _AT;
_yW._2u._ZR = _CT;
_yW._2u.__R = !0;
_yW._Da._Ea = 0;
_US(_yW._4u, _yW._Da, _yW._2u);
return _yW._4u._uP < 10.0 * _dM
}
_yW._2u = new _VR();
_yW._Da = new _RR();
_yW._4u = new _0S();
function _qR(_kb, _W9) {
return ! ((_W9._HP._f3 - _kb._IP._f3) > 0.0 || (_W9._HP._g3 - _kb._IP._g3) > 0.0 || (_kb._HP._f3 - _W9._IP._f3) > 0.0 || (_kb._HP._g3 - _W9._IP._g3) > 0.0)
}
var _BW = -1;
function _CW() {
this._pP = new __T();
this._dR = null;
this.parent = 0;
this._DW = this._EW = this.height = 0
}
_CW.prototype = {
_FW: function() {
return this._DW == _BW
}
};
function _5R() {
this._GW = _BW;
this._HW = 16;
this._IW = 0;
this._JW = new Array(this._HW);
for (var _H3 = 0; _H3 < this._HW - 1; ++_H3) {
this._JW[_H3] = new _CW();
this._JW[_H3].parent = _H3 + 1;
this._JW[_H3].height = -1;
}
this._JW[this._HW - 1] = new _CW();
this._JW[this._HW - 1].parent = _BW;
this._JW[this._HW - 1].height = -1;
this._KW = 0;
this._LW = 0;
this._MW = 0
}
_5R._NW = new _ZM(_hM, _hM);
_5R.prototype = {
_cR: function(_pP, _dR) {
var _eR = this._OW();
this._JW[_eR]._pP._HP._2N(_ZM._6N(_pP._HP, _5R._NW));
this._JW[_eR]._pP._IP._2N(_ZM._Wh(_pP._IP, _5R._NW));
this._JW[_eR]._dR = _dR;
this._JW[_eR].height = 0;
this._PW(_eR);
return _eR
},
_gR: function(_eR) {
_9M(0 <= _eR && _eR < this._HW);
_9M(this._JW[_eR]._FW());
this._QW(_eR);
this._RW(_eR)
},
_iR: function(_eR, _pP, _jR) {
_9M(0 <= _eR && _eR < this._HW);
_9M(this._JW[_eR]._FW());
if (this._JW[_eR]._pP._8U(_pP)) {
return ! 1
}
this._QW(_eR);
this._JW[_eR]._pP._2N(_pP);
this._JW[_eR]._pP._HP._6N(_5R._NW);
this._JW[_eR]._pP._IP._Wh(_5R._NW);
var _mk = _ZM._Vo(_iM, _jR);
if (_mk._f3 < 0.0) {
this._JW[_eR]._pP._HP._f3 += _mk._f3
} else {
this._JW[_eR]._pP._IP._f3 += _mk._f3
}
if (_mk._g3 < 0.0) {
this._JW[_eR]._pP._HP._g3 += _mk._g3
} else {
this._JW[_eR]._pP._IP._g3 += _mk._g3
}
this._PW(_eR);
return ! 0
},
_mR: function(_eR) {
_9M(0 <= _eR && _eR < this._HW);
return this._JW[_eR]._dR
},
_lR: function(_eR) {
_9M(0 <= _eR && _eR < this._HW);
return this._JW[_eR]._pP
},
_wR: function(_tR, _pP) {
var _Gi = [];
_Gi.push(this._GW);
while (_Gi.length > 0) {
var _SW = _Gi.pop();
if (_SW == _BW) {
continue
}
var _aI = this._JW[_SW];
if (_qR(_aI._pP, _pP)) {
if (_aI._FW()) {
var _TW = _tR._KR(_SW);
if (_TW == !1) {
return
}
} else {
_Gi.push(_aI._DW);
_Gi.push(_aI._EW)
}
}
}
},
_mP: function(_tR, _2u) {
var _TO = _2u._TO;
var _UO = _2u._UO;
var _T9 = _ZM._6N(_UO, _TO);
_9M(_T9._8N() > 0.0);
_T9._9N();
var _xb = _1O(1.0, _T9);
var _UW = _oO(_xb);
var _FP = _2u._FP;
var _VW = new __T(); {
var _V9 = _ZM._Wh(_TO, _ZM._Vo(_FP, _ZM._6N(_UO, _TO)));
_VW._HP._2N(_rO(_TO, _V9));
_VW._IP._2N(_tO(_TO, _V9))
}
var _Gi = [];
_Gi.push(this._GW);
while (_Gi.length > 0) {
var _SW = _Gi.pop();
if (_SW == _BW) {
continue
}
var _aI = this._JW[_SW];
if (_qR(_aI._pP, _VW) == !1) {
continue
}
var _I3 = _aI._pP._2U();
var _K3 = _aI._pP._3U();
var _nU = _nO(_ZN(_xb, _ZM._6N(_TO, _I3))) - _ZN(_UW, _K3);
if (_nU > 0.0) {
continue
}
if (_aI._FW()) {
var _WW = new _YT();
_WW._TO._2N(_2u._TO);
_WW._UO._2N(_2u._UO);
_WW._FP = _FP;
var value = _tR._XW(_WW, _SW);
if (value == 0.0) {
return
}
if (value > 0.0) {
_FP = value;
var _V9 = _ZM._Wh(_TO, _ZM._Vo(_FP, _ZM._6N(_UO, _TO)));
_VW._HP._2N(_rO(_TO, _V9));
_VW._IP._2N(_tO(_TO, _V9))
}
} else {
_Gi.push(_aI._DW);
_Gi.push(_aI._EW)
}
}
},
_OQ: function() {
this._YW(this._GW);
this._ZW(this._GW);
var __W = 0;
var _0X = this._KW;
while (_0X != _BW) {
_9M(0 <= _0X && _0X < this._HW);
_0X = this._JW[_0X].parent; ++__W
}
_9M(this._DR() == this._1X());
_9M(this._IW + __W == this._HW)
},
_DR: function() {
if (this._GW == _BW) {
return 0
}
return this._JW[this._GW].height
},
_FR: function() {
var _2X = 0;
for (var _H3 = 0; _H3 < this._HW; ++_H3) {
var _aI = this._JW[_H3];
if (_aI.height <= 1) {
continue
}
_9M(_aI._FW() == !1);
var _DW = _aI._DW;
var _EW = _aI._EW;
var _3X = _nO(this._JW[_EW].height - this._JW[_DW].height);
_2X = _sO(_2X, _3X)
}
return _2X
},
_HR: function() {
if (this._GW == _BW) {
return 0.0
}
var _19 = this._JW[this._GW];
var _4X = _19._pP._4U();
var _5X = 0.0;
for (var _H3 = 0; _H3 < this._HW; ++_H3) {
var _aI = this._JW[_H3];
if (_aI.height < 0) {
continue
}
_5X += _aI._pP._4U()
}
return _5X / _4X
},
_6X: function() {
var _7X = new Array(this._IW);
var _Ea = 0;
for (var _H3 = 0; _H3 < this._HW; ++_H3) {
if (this._JW[_H3].height < 0) {
continue
}
if (this._JW[_H3]._FW()) {
this._JW[_H3].parent = _BW;
_7X[_Ea] = _H3; ++_Ea
} else {
this._RW(_H3)
}
}
while (_Ea > 1) {
var _8X = _cM;
var _9X = -1,
_aX = -1;
for (_H3 = 0; _H3 < _Ea; ++_H3) {
var _bX = this._JW[_7X[_H3]]._pP;
for (var __9 = _H3 + 1; __9 < _Ea; ++__9) {
var _cX = this._JW[_7X[__9]]._pP;
var _W9 = new __T();
_W9._5U(_bX, _cX);
var _dX = _W9._4U();
if (_dX < _8X) {
_9X = _H3;
_aX = __9;
_8X = _dX
}
}
}
var _eX = _7X[_9X];
var _fX = _7X[_aX];
var _DW = this._JW[_eX];
var _EW = this._JW[_fX];
var _gX = this._OW();
var parent = this._JW[_gX];
parent._DW = _eX;
parent._EW = _fX;
parent.height = 1 + _sO(_DW.height, _EW.height);
parent._pP._5U(_DW._pP, _EW._pP);
parent.parent = _BW;
_DW.parent = _gX;
_EW.parent = _gX;
_7X[_aX] = _7X[_Ea - 1];
_7X[_9X] = _gX; --_Ea
}
this._GW = _7X[0];
this._OQ()
},
_IR: function(_JR) {
for (var _H3 = 0; _H3 < this._HW; ++_H3) {
this._JW[_H3]._pP._HP._6N(_JR);
this._JW[_H3]._pP._IP._6N(_JR)
}
},
_OW: function() {
if (this._KW == _BW) {
_9M(this._IW == this._HW);
var _hX = this._JW;
this._HW *= 2;
this._JW = _hX.concat(new Array(this._HW - this._IW));
for (var _H3 = this._IW; _H3 < this._HW - 1; ++_H3) {
this._JW[_H3] = new _CW();
this._JW[_H3].parent = _H3 + 1;
this._JW[_H3].height = -1
}
this._JW[this._HW - 1] = new _CW();
this._JW[this._HW - 1].parent = _BW;
this._JW[this._HW - 1].height = -1;
this._KW = this._IW
}
var _SW = this._KW;
this._KW = this._JW[_SW].parent;
this._JW[_SW].parent = _BW;
this._JW[_SW]._DW = _BW;
this._JW[_SW]._EW = _BW;
this._JW[_SW].height = 0;
this._JW[_SW]._dR = null; ++this._IW;
return _SW
},
_RW: function(_SW) {
_9M(0 <= _SW && _SW < this._HW);
_9M(0 < this._IW);
this._JW[_SW].parent = this._KW;
this._JW[_SW].height = -1;
this._KW = _SW; --this._IW
},
_PW: function(_iX) {++this._MW;
if (this._GW == _BW) {
this._GW = _iX;
this._JW[this._GW].parent = _BW;
return
}
var _jX = this._JW[_iX]._pP;
var index = this._GW;
while (this._JW[index]._FW() == !1) {
var _DW = this._JW[index]._DW;
var _EW = this._JW[index]._EW;
var _CQ = this._JW[index]._pP._4U();
var _kX = new __T();
_kX._5U(this._JW[index]._pP, _jX);
var _lX = _kX._4U();
var _dX = 2.0 * _lX;
var _mX = 2.0 * (_lX - _CQ);
var _nX;
var _pP;
if (this._JW[_DW]._FW()) {
_pP = new __T();
_pP._5U(_jX, this._JW[_DW]._pP);
_nX = _pP._4U() + _mX
} else {
_pP = new __T();
_pP._5U(_jX, this._JW[_DW]._pP);
var _oX = this._JW[_DW]._pP._4U();
var _pX = _pP._4U();
_nX = (_pX - _oX) + _mX
}
var _qX;
if (this._JW[_EW]._FW()) {
_pP = new __T();
_pP._5U(_jX, this._JW[_EW]._pP);
_qX = _pP._4U() + _mX
} else {
_pP = new __T();
_pP._5U(_jX, this._JW[_EW]._pP);
var _oX = this._JW[_EW]._pP._4U();
var _pX = _pP._4U();
_qX = _pX - _oX + _mX
}
if (_dX < _nX && _dX < _qX) {
break
}
if (_nX < _qX) {
index = _DW
} else {
index = _EW
}
}
var _rX = index;
var _sX = this._JW[_rX].parent;
var _tX = this._OW();
this._JW[_tX].parent = _sX;
this._JW[_tX]._dR = null;
this._JW[_tX]._pP._5U(_jX, this._JW[_rX]._pP);
this._JW[_tX].height = this._JW[_rX].height + 1;
if (_sX != _BW) {
if (this._JW[_sX]._DW == _rX) {
this._JW[_sX]._DW = _tX;
} else {
this._JW[_sX]._EW = _tX
}
this._JW[_tX]._DW = _rX;
this._JW[_tX]._EW = _iX;
this._JW[_rX].parent = _tX;
this._JW[_iX].parent = _tX
} else {
this._JW[_tX]._DW = _rX;
this._JW[_tX]._EW = _iX;
this._JW[_rX].parent = _tX;
this._JW[_iX].parent = _tX;
this._GW = _tX
}
index = this._JW[_iX].parent;
while (index != _BW) {
index = this._uX(index);
var _DW = this._JW[index]._DW;
var _EW = this._JW[index]._EW;
_9M(_DW != _BW);
_9M(_EW != _BW);
this._JW[index].height = 1 + _sO(this._JW[_DW].height, this._JW[_EW].height);
this._JW[index]._pP._5U(this._JW[_DW]._pP, this._JW[_EW]._pP);
index = this._JW[index].parent
}
},
_QW: function(_iX) {
if (_iX == this._GW) {
this._GW = _BW;
return
}
var parent = this._JW[_iX].parent;
var _vX = this._JW[parent].parent;
var _rX;
if (this._JW[parent]._DW == _iX) {
_rX = this._JW[parent]._EW
} else {
_rX = this._JW[parent]._DW
}
if (_vX != _BW) {
if (this._JW[_vX]._DW == parent) {
this._JW[_vX]._DW = _rX
} else {
this._JW[_vX]._EW = _rX
}
this._JW[_rX].parent = _vX;
this._RW(parent);
var index = _vX;
while (index != _BW) {
index = this._uX(index);
var _DW = this._JW[index]._DW;
var _EW = this._JW[index]._EW;
this._JW[index]._pP._5U(this._JW[_DW]._pP, this._JW[_EW]._pP);
this._JW[index].height = 1 + _sO(this._JW[_DW].height, this._JW[_EW].height);
index = this._JW[index].parent
}
} else {
this._GW = _rX;
this._JW[_rX].parent = _BW;
this._RW(parent)
}
},
_uX: function(_wX) {
_9M(_wX != _BW);
var _aM = this._JW[_wX];
if (_aM._FW() || _aM.height < 2) {
return _wX
}
var _xX = _aM._DW;
var _yX = _aM._EW;
_9M(0 <= _xX && _xX < this._HW);
_9M(0 <= _yX && _yX < this._HW);
var _pN = this._JW[_xX];
var _jO = this._JW[_yX];
var _3X = _jO.height - _pN.height;
if (_3X > 1) {
var _zX = _jO._DW;
var _AX = _jO._EW;
var _BX = this._JW[_zX];
var _CX = this._JW[_AX];
_9M(0 <= _zX && _zX < this._HW);
_9M(0 <= _AX && _AX < this._HW);
_jO._DW = _wX;
_jO.parent = _aM.parent;
_aM.parent = _yX;
if (_jO.parent != _BW) {
if (this._JW[_jO.parent]._DW == _wX) {
this._JW[_jO.parent]._DW = _yX
} else {
_9M(this._JW[_jO.parent]._EW == _wX);
this._JW[_jO.parent]._EW = _yX
}
} else {
this._GW = _yX
}
if (_BX.height > _CX.height) {
_jO._EW = _zX;
_aM._EW = _AX;
_CX.parent = _wX;
_aM._pP._5U(_pN._pP, _CX._pP);
_jO._pP._5U(_aM._pP, _BX._pP);
_aM.height = 1 + _sO(_pN.height, _CX.height);
_jO.height = 1 + _sO(_aM.height, _BX.height)
} else {
_jO._EW = _AX;
_aM._EW = _zX;
_BX.parent = _wX;
_aM._pP._5U(_pN._pP, _BX._pP);
_jO._pP._5U(_aM._pP, _CX._pP);
_aM.height = 1 + _sO(_pN.height, _BX.height);
_jO.height = 1 + _sO(_aM.height, _CX.height)
}
return _yX
}
if (_3X < -1) {
var _DX = _pN._DW;
var _EX = _pN._EW;
var _GQ = this._JW[_DX];
var _FX = this._JW[_EX];
_9M(0 <= _DX && _DX < this._HW);
_9M(0 <= _EX && _EX < this._HW);
_pN._DW = _wX;
_pN.parent = _aM.parent;
_aM.parent = _xX;
if (_pN.parent != _BW) {
if (this._JW[_pN.parent]._DW == _wX) {
this._JW[_pN.parent]._DW = _xX
} else {
_9M(this._JW[_pN.parent]._EW == _wX);
this._JW[_pN.parent]._EW = _xX
}
} else {
this._GW = _xX
}
if (_GQ.height > _FX.height) {
_pN._EW = _DX;
_aM._DW = _EX;
_FX.parent = _wX;
_aM._pP._5U(_jO._pP, _FX._pP);
_pN._pP._5U(_aM._pP, _GQ._pP);
_aM.height = 1 + _sO(_jO.height, _FX.height);
_pN.height = 1 + _sO(_aM.height, _GQ.height)
} else {
_pN._EW = _EX;
_aM._DW = _DX;
_GQ.parent = _wX;
_aM._pP._5U(_jO._pP, _GQ._pP);
_pN._pP._5U(_aM._pP, _FX._pP);
_aM.height = 1 + _sO(_jO.height, _GQ.height);
_pN.height = 1 + _sO(_aM.height, _FX.height)
}
return _xX
}
return _wX
},
_1X: function(_SW) {
if (typeof(_SW) === 'undefined') _SW = this._GW;
_9M(0 <= _SW && _SW < this._HW);
var _aI = this._JW[_SW];
if (_aI._FW()) {
return 0
}
var _GX = this._1X(_aI._DW);
var _HX = this._1X(_aI._EW);
return 1 + _sO(_GX, _HX)
},
_YW: function(index) {
if (index == _BW) {
return
}
if (index == this._GW) {
_9M(this._JW[index].parent == _BW)
}
var _aI = this._JW[index];
var _DW = _aI._DW;
var _EW = _aI._EW;
if (_aI._FW()) {
_9M(_DW == _BW);
_9M(_EW == _BW);
_9M(_aI.height == 0);
return
}
_9M(0 <= _DW && _DW < this._HW);
_9M(0 <= _EW && _EW < this._HW);
_9M(this._JW[_DW].parent == index);
_9M(this._JW[_EW].parent == index);
this._YW(_DW);
this._YW(_EW)
},
_ZW: function(index) {
if (index == _BW) {
return
}
var _aI = this._JW[index];
var _DW = _aI._DW;
var _EW = _aI._EW;
if (_aI._FW()) {
_9M(_DW == _BW);
_9M(_EW == _BW);
_9M(_aI.height == 0);
return
}
_9M(0 <= _DW && _DW < this._HW);
_9M(0 <= _EW && _EW < this._HW);
var _GX = this._JW[_DW].height;
var _HX = this._JW[_EW].height;
var height;
height = 1 + _sO(_GX, _HX);
_9M(_aI.height == height);
var _pP = new __T();
_pP._5U(this._JW[_DW]._pP, this._JW[_EW]._pP);
_9M(_ZM._gN(_pP._HP, _aI._pP._HP));
_9M(_ZM._gN(_pP._IP, _aI._pP._IP));
this._ZW(_DW);
this._ZW(_EW)
}
};
function _IX() {
this._WR = new _LR();
this._XR = new _LR();
this._JX = new _PN();
this._KX = new _PN();
this._LX = 0
};
function _MX() {
this._Lz = 0;
this._V9 = 0
};
_MX._DV = 0;
_MX._NX = 1;
_MX._OX = 2;
_MX._PX = 3;
_MX._QX = 4;
function _RX() {
this._SX = null;
this._TX = null;
this._UX = null;
this._VX = null;
this._hP = 0;
this._WX = new _ZM();
this._XX = new _ZM()
}
var _YX = new _NN();
var _ZX = new _NN();
_RX.prototype = {
_zT: function(_Da, _WR, _JX, _XR, _KX, _dU) {
this._SX = _WR;
this._TX = _XR;
var _Ea = _Da._Ea;
_9M(0 < _Ea && _Ea < 3);
this._UX = _JX;
this._VX = _KX;
this._UX._VN(_YX, _dU);
this._VX._VN(_ZX, _dU);
if (_Ea == 1) {
this._hP = _RX.__X;
var _0Y = this._SX._MP(_Da._TR[0]);
var _1Y = this._TX._MP(_Da._UR[0]);
var _ET = (_YX._fu._I3 * _0Y._f3 - _YX._fu._9q * _0Y._g3) + _YX._mv._f3;
var _FT = (_YX._fu._9q * _0Y._f3 + _YX._fu._I3 * _0Y._g3) + _YX._mv._g3;
var _GT = (_ZX._fu._I3 * _1Y._f3 - _ZX._fu._9q * _1Y._g3) + _ZX._mv._f3;
var _HT = (_ZX._fu._9q * _1Y._f3 + _ZX._fu._I3 * _1Y._g3) + _ZX._mv._g3;
this._XX._f3 = _GT - _ET;
this._XX._g3 = _HT - _FT;
var _9q = this._XX._9N();
return _9q
} else if (_Da._TR[0] == _Da._TR[1]) {
this._hP = _RX._sT;
var _2Y = _XR._MP(_Da._UR[0]);
var _3Y = _XR._MP(_Da._UR[1]);
this._XX._f3 = 1.0 * (_3Y._g3 - _2Y._g3);
this._XX._g3 = -1.0 * (_3Y._f3 - _2Y._f3);
this._XX._9N();
var _dV = _ZX._fu._I3 * this._XX._f3 - _ZX._fu._9q * this._XX._g3;
var _eV = _ZX._fu._9q * this._XX._f3 + _ZX._fu._I3 * this._XX._g3;
this._WX._f3 = 0.5 * (_2Y._f3 + _3Y._f3);
this._WX._g3 = 0.5 * (_2Y._g3 + _3Y._g3);
var _GT = (_ZX._fu._I3 * this._WX._f3 - _ZX._fu._9q * this._WX._g3) + _ZX._mv._f3;
var _HT = (_ZX._fu._9q * this._WX._f3 + _ZX._fu._I3 * this._WX._g3) + _ZX._mv._g3;
var _0Y = _WR._MP(_Da._TR[0]);
var _ET = (_YX._fu._I3 * _0Y._f3 - _YX._fu._9q * _0Y._g3) + _YX._mv._f3;
var _FT = (_YX._fu._9q * _0Y._f3 + _YX._fu._I3 * _0Y._g3) + _YX._mv._g3;
var _9q = (_ET - _GT) * _dV + (_FT - _HT) * _eV;
if (_9q < 0.0) {
this._XX._f3 = -this._XX._f3;
this._XX._g3 = -this._XX._g3;
_9q = -_9q
}
return _9q
} else {
this._hP = _RX._rT;
var _4Y = this._SX._MP(_Da._TR[0]);
var _5Y = this._SX._MP(_Da._TR[1]);
this._XX._f3 = 1.0 * (_5Y._g3 - _4Y._g3);
this._XX._g3 = -1.0 * (_5Y._f3 - _4Y._f3);
this._XX._9N();
var _dV = _YX._fu._I3 * this._XX._f3 - _YX._fu._9q * this._XX._g3;
var _eV = _YX._fu._9q * this._XX._f3 + _YX._fu._I3 * this._XX._g3;
this._WX._f3 = 0.5 * (_4Y._f3 + _5Y._f3);
this._WX._g3 = 0.5 * (_4Y._g3 + _5Y._g3);
var _ET = (_YX._fu._I3 * this._WX._f3 - _YX._fu._9q * this._WX._g3) + _YX._mv._f3;
var _FT = (_YX._fu._9q * this._WX._f3 + _YX._fu._I3 * this._WX._g3) + _YX._mv._g3;
var _1Y = this._TX._MP(_Da._UR[0]);
var _GT = (_ZX._fu._I3 * _1Y._f3 - _ZX._fu._9q * _1Y._g3) + _ZX._mv._f3;
var _HT = (_ZX._fu._9q * _1Y._f3 + _ZX._fu._I3 * _1Y._g3) + _ZX._mv._g3;
var _9q = (_GT - _ET) * _dV + (_HT - _FT) * _eV;
if (_9q < 0.0) {
this._XX._f3 = -this._XX._f3;
this._XX._g3 = -this._XX._g3;
_9q = -_9q
}
return _9q
}
},
_6Y: function(_7Y, _V9) {
this._UX._VN(_YX, _V9);
this._VX._VN(_ZX, _V9);
switch (this._hP) {
case _RX.__X:
{
var _8Y = _YX._fu._I3 * this._XX._f3 + _YX._fu._9q * this._XX._g3;
var _9Y = -_YX._fu._9q * this._XX._f3 + _YX._fu._I3 * this._XX._g3;
var _aY = _ZX._fu._I3 * -this._XX._f3 + _ZX._fu._9q * -this._XX._g3;
var _bY = -_ZX._fu._9q * -this._XX._f3 + _ZX._fu._I3 * -this._XX._g3;
_7Y[0] = this._SX._JP(_8Y, _9Y);
_7Y[1] = this._TX._JP(_aY, _bY);
var _0Y = this._SX._MP(_7Y[0]);
var _1Y = this._TX._MP(_7Y[1]);
var _ET = (_YX._fu._I3 * _0Y._f3 - _YX._fu._9q * _0Y._g3) + _YX._mv._f3;
var _FT = (_YX._fu._9q * _0Y._f3 + _YX._fu._I3 * _0Y._g3) + _YX._mv._g3;
var _GT = (_ZX._fu._I3 * _1Y._f3 - _ZX._fu._9q * _1Y._g3) + _ZX._mv._f3;
var _HT = (_ZX._fu._9q * _1Y._f3 + _ZX._fu._I3 * _1Y._g3) + _ZX._mv._g3;
return (_GT - _ET) * this._XX._f3 + (_HT - _FT) * this._XX._g3
}
case _RX._rT:
{
var _dV = _YX._fu._I3 * this._XX._f3 - _YX._fu._9q * this._XX._g3;
var _eV = _YX._fu._9q * this._XX._f3 + _YX._fu._I3 * this._XX._g3;
var _ET = (_YX._fu._I3 * this._WX._f3 - _YX._fu._9q * this._WX._g3) + _YX._mv._f3;
var _FT = (_YX._fu._9q * this._WX._f3 + _YX._fu._I3 * this._WX._g3) + _YX._mv._g3;
var _aY = _ZX._fu._I3 * -_dV + _ZX._fu._9q * -_eV;
var _bY = -_ZX._fu._9q * -_dV + _ZX._fu._I3 * -_eV;
_7Y[0] = -1;
_7Y[1] = this._TX._JP(_aY, _bY);
var _1Y = this._TX._MP(_7Y[1]);
var _GT = (_ZX._fu._I3 * _1Y._f3 - _ZX._fu._9q * _1Y._g3) + _ZX._mv._f3;
var _HT = (_ZX._fu._9q * _1Y._f3 + _ZX._fu._I3 * _1Y._g3) + _ZX._mv._g3;
return (_GT - _ET) * _dV + (_HT - _FT) * _eV
}
case _RX._sT:
{
var _dV = _ZX._fu._I3 * this._XX._f3 - _ZX._fu._9q * this._XX._g3;
var _eV = _ZX._fu._9q * this._XX._f3 + _ZX._fu._I3 * this._XX._g3;
var _GT = (_ZX._fu._I3 * this._WX._f3 - _ZX._fu._9q * this._WX._g3) + _ZX._mv._f3;
var _HT = (_ZX._fu._9q * this._WX._f3 + _ZX._fu._I3 * this._WX._g3) + _ZX._mv._g3;
var _8Y = _YX._fu._I3 * -_dV + _YX._fu._9q * -_eV;
var _bY = -_YX._fu._9q * -_dV + _YX._fu._I3 * -_eV;
_7Y[1] = -1;
_7Y[0] = this._SX._JP(_8Y, _bY);
var _0Y = this._SX._MP(_7Y[0]);
var _ET = (_YX._fu._I3 * _0Y._f3 - _YX._fu._9q * _0Y._g3) + _YX._mv._f3;
var _FT = (_YX._fu._9q * _0Y._f3 + _YX._fu._I3 * _0Y._g3) + _YX._mv._g3;
return (_ET - _GT) * _dV + (_FT - _HT) * _eV
}
default:
_9M(!1);
_7Y[0] = -1;
_7Y[1] = -1;
return 0.0
}
},
_cY: function(_TR, _UR, _V9) {
this._UX._VN(_YX, _V9);
this._VX._VN(_ZX, _V9);
switch (this._hP) {
case _RX.__X:
{
var _0Y = this._SX._MP(_TR);
var _1Y = this._TX._MP(_UR);
var _ET = (_YX._fu._I3 * _0Y._f3 - _YX._fu._9q * _0Y._g3) + _YX._mv._f3;
var _FT = (_YX._fu._9q * _0Y._f3 + _YX._fu._I3 * _0Y._g3) + _YX._mv._g3;
var _GT = (_ZX._fu._I3 * _1Y._f3 - _ZX._fu._9q * _1Y._g3) + _ZX._mv._f3;
var _HT = (_ZX._fu._9q * _1Y._f3 + _ZX._fu._I3 * _1Y._g3) + _ZX._mv._g3;
var _nU = (_GT - _ET) * this._XX._f3 + (_HT - _FT) * this._XX._g3;
return _nU
}
case _RX._rT:
{
var _dV = _YX._fu._I3 * this._XX._f3 - _YX._fu._9q * this._XX._g3;
var _eV = _YX._fu._9q * this._XX._f3 + _YX._fu._I3 * this._XX._g3;
var _ET = (_YX._fu._I3 * this._WX._f3 - _YX._fu._9q * this._WX._g3) + _YX._mv._f3;
var _FT = (_YX._fu._9q * this._WX._f3 + _YX._fu._I3 * this._WX._g3) + _YX._mv._g3;
var _1Y = this._TX._MP(_UR);
var _GT = (_ZX._fu._I3 * _1Y._f3 - _ZX._fu._9q * _1Y._g3) + _ZX._mv._f3;
var _HT = (_ZX._fu._9q * _1Y._f3 + _ZX._fu._I3 * _1Y._g3) + _ZX._mv._g3;
var _nU = (_GT - _ET) * _dV + (_HT - _FT) * _eV;
return _nU
}
case _RX._sT:
{
var _dV = _ZX._fu._I3 * this._XX._f3 - _ZX._fu._9q * this._XX._g3;
var _eV = _ZX._fu._9q * this._XX._f3 + _ZX._fu._I3 * this._XX._g3;
var _GT = (_ZX._fu._I3 * this._WX._f3 - _ZX._fu._9q * this._WX._g3) + _ZX._mv._f3;
var _HT = (_ZX._fu._9q * this._WX._f3 + _ZX._fu._I3 * this._WX._g3) + _ZX._mv._g3;
var _0Y = this._SX._MP(_TR);
var _ET = (_YX._fu._I3 * _0Y._f3 - _YX._fu._9q * _0Y._g3) + _YX._mv._f3;
var _FT = (_YX._fu._9q * _0Y._f3 + _YX._fu._I3 * _0Y._g3) + _YX._mv._g3;
var _nU = (_ET - _GT) * _dV + (_FT - _HT) * _eV;
return _nU
}
default:
_9M(!1);
return 0.0
}
}
};
_RX.__X = 0;
_RX._rT = 1;
_RX._sT = 2;
var _dY = _RL._2M("toi", "solveTOI");
function _eY(_4u, _2u) {
_dY.start(); ++_eY._fY;
_4u._Lz = _MX._DV;
_4u._V9 = _2u._LX;
var _WR = _2u._WR;
var _XR = _2u._XR;
_eY._gY._2N(_2u._JX);
_eY._hY._2N(_2u._KX);
_eY._gY._9N();
_eY._hY._9N();
var _LX = _2u._LX;
var _WU = _WR._iP + _XR._iP;
var target = _sO(_jM, _WU - 3.0 * _jM);
var _iY = 0.25 * _jM;
_9M(target > _iY);
var _dU = 0.0;
var _jY = 20;
var _1T = 0;
var _Da = new _RR();
_Da._Ea = 0;
var _kY = new _VR();
_kY._WR._2N(_2u._WR);
_kY._XR._2N(_2u._XR);
_kY.__R = !1;
for (;;) {
_eY._gY._VN(_kY._YR, _dU);
_eY._hY._VN(_kY._ZR, _dU);
var _lY = new _0S();
_US(_lY, _Da, _kY);
if (_lY._uP <= 0.0) {
_4u._Lz = _MX._OX;
_4u._V9 = 0.0;
break
}
if (_lY._uP < target + _iY) {
_4u._Lz = _MX._PX;
_4u._V9 = _dU;
break
}
var _mY = new _RX();
_mY._zT(_Da, _WR, _eY._gY, _XR, _eY._hY, _dU);
var _nY = !1;
var _eU = _LX;
var _oY = 0;
for (;;) {
var _7Y = [];
var _mp = _mY._6Y(_7Y, _eU);
if (_mp > target + _iY) {
_4u._Lz = _MX._QX;
_4u._V9 = _LX;
_nY = !0;
break
}
if (_mp > target - _iY) {
_dU = _eU;
break
}
var _lp = _mY._cY(_7Y[0], _7Y[1], _dU);
if (_lp < target - _iY) {
_4u._Lz = _MX._NX;
_4u._V9 = _dU;
_nY = !0;
break
}
if (_lp <= target + _iY) {
_4u._Lz = _MX._PX;
_4u._V9 = _dU;
_nY = !0;
break
}
var _pY = 0;
var _CH = _dU,
_DH = _eU;
for (;;) {
var _V9;
if (_pY & 1) {
_V9 = _CH + (target - _lp) * (_DH - _CH) / (_mp - _lp)
} else {
_V9 = 0.5 * (_CH + _DH)
}++_pY; ++_eY._qY;
var _9q = _mY._cY(_7Y[0], _7Y[1], _V9);
if (_nO(_9q - target) < _iY) {
_eU = _V9;
break
}
if (_9q > target) {
_CH = _V9;
_lp = _9q;
} else {
_DH = _V9;
_mp = _9q
}
if (_pY == 50) {
break
}
}
_eY._rY = _sO(_eY._rY, _pY); ++_oY;
if (_oY == _gM) {
break
}
}++_1T; ++_eY._sY;
if (_nY) {
break
}
if (_1T == _jY) {
_4u._Lz = _MX._NX;
_4u._V9 = _dU;
break
}
}
_eY._tY = _sO(_eY._tY, _1T);
_dY.stop();
_eY._uY = _sO(_eY._uY, _dY._WL);
_eY._vY += _dY._WL
}
_eY._gY = new _PN();
_eY._hY = new _PN();
_eY._vY = 0;
_eY._uY = 0;
_eY._fY = 0;
_eY._sY = 0;
_eY._tY = 0;
_eY._qY = 0;
_eY._rY = 0;
function _wY() {
this.type = _xY._yY;
this.position = new _ZM(0.0, 0.0);
this._0b = 0.0;
this._zY = new _ZM(0.0, 0.0);
this._AY = 0.0;
this._BY = 0.0;
this._CY = 0.0;
this._DY = !0;
this._EY = !0;
this._FY = !1;
this._GY = !1;
this._HY = !0;
this._dR = null;
this._IY = 1.0;
Object.seal(this)
}
_wY.prototype = {
_fN: function(data) {
this.type = data['type'];
this.position._fN(data['position']);
this._0b = data['angle'];
this._zY._fN(data['linearVelocity']);
this._AY = data['angularVelocity'];
this._BY = data['linearDamping'];
this._CY = data['angularDamping'];
this._DY = data['allowSleep'];
this._EY = data['awake'];
this._FY = data['fixedRotation'];
this._GY = data['bullet'];
this._HY = data['active'];
this._IY = data['gravityScale']
}
};
function _xY(_JY, _KY) {
_9M(_JY.position._bN());
_9M(_JY._zY._bN());
_9M(_PM(_JY._0b));
_9M(_PM(_JY._AY));
_9M(_PM(_JY._CY) && _JY._CY >= 0.0);
_9M(_PM(_JY._BY) && _JY._BY >= 0.0);
this._LY = 0;
this._MY = 0;
if (_JY._GY) {
this._MY |= _xY._NY
}
if (_JY._FY) {
this._MY |= _xY._OY
}
if (_JY._DY) {
this._MY |= _xY._PY
}
if (_JY._EY) {
this._MY |= _xY._QY
}
if (_JY._HY) {
this._MY |= _xY._RY
}
this._SY = _KY;
this._MV = new _NN();
this._MV._mv._2N(_JY.position);
this._MV._fu._gi(_JY._0b);
this._TY = new _NN();
this._TY._2N(this._MV);
this._UY = new _PN();
this._UY._QN.__M();
this._UY._RN._2N(this._MV._mv);
this._UY._I3._2N(this._MV._mv);
this._UY._TN = _JY._0b;
this._UY._kb = _JY._0b;
this._UY._UN = 0.0;
this._VY = null;
this._WY = null;
this._XY = null;
this._YY = null;
this._ZY = _JY._zY._u8();
this.__Y = _JY._AY;
this._0Z = _JY._BY;
this._1Z = _JY._CY;
this._2Z = _JY._IY;
this._3Z = new _ZM();
this._4Z = 0.0;
this._5Z = 0.0;
this._hP = _JY.type;
if (this._hP == _xY._6Z) {
this._7Z = 1.0;
this._8Z = 1.0
} else {
this._7Z = 0.0;
this._8Z = 0.0
}
this._9Z = 0.0;
this._aZ = 0.0;
this._bZ = _JY._dR;
this._cZ = null;
this._dZ = 0
}
_xY._yY = 0;
_xY._eZ = 1;
_xY._6Z = 2;
_xY._fZ = 0x0001;
_xY._QY = 0x0002;
_xY._PY = 0x0004;
_xY._NY = 0x0008;
_xY._OY = 0x0010;
_xY._RY = 0x0020;
_xY._gZ = 0x0040;
_xY._hZ = new _ZM();
_xY._iZ = new _NN();
_xY.prototype = {
_jZ: function(_kZ, _sP) {
if (typeof(_sP) !== 'undefined') {
var _lZ = new _mZ();
_lZ._DP = _kZ;
_lZ._sP = _sP;
return this._jZ(_lZ)
}
_9M(this._SY._nZ() == !1);
if (this._SY._nZ() == !0) {
return null
}
var _TC = new _oZ();
_TC._pZ(this, _kZ);
if (this._MY & _xY._RY) {
var _qZ = this._SY._rZ._sZ;
_TC._tZ(_qZ, this._MV)
}
_TC._YY = this._cZ;
this._cZ = _TC; ++this._dZ;
_TC._uZ = this;
if (_TC._vZ > 0.0) {
this._wZ()
}
this._SY._MY |= _xZ._yZ;
return _TC
},
_zZ: function(_TC) {
_9M(this._SY._nZ() == !1);
if (this._SY._nZ() == !0) {
return
}
_9M(_TC._uZ == this);
_9M(this._dZ > 0);
var _aI = this._cZ;
var _AZ = !1;
while (_aI != null) {
if (_aI == _TC) {
this._cZ = _aI = _TC._YY;
_AZ = !0;
break
}
_aI = _aI._YY
}
_9M(_AZ);
var _gQ = this._WY;
while (_gQ) {
var _I3 = _gQ._BZ;
_gQ = _gQ._ni;
var _CZ = _I3._DZ();
var _EZ = _I3._FZ();
if (_TC == _CZ || _TC == _EZ) {
this._SY._rZ._GZ(_I3)
}
}
if (this._MY & _xY._RY) {
var _qZ = this._SY._rZ._sZ;
_TC._HZ(_qZ)
}
_TC._GZ();
_TC._uZ = null;
_TC._YY = null; --this._dZ;
this._wZ()
},
_IZ: function(position, _0b) {
_9M(this._SY._nZ() == !1);
if (this._SY._nZ() == !0) {
return
}
this._MV._fu._gi(_0b);
this._MV._mv._2N(position);
this._TY._2N(this._MV);
this._UY._I3._2N(_fO(this._MV, this._UY._QN));
this._UY._kb = _0b;
this._UY._RN._2N(this._UY._I3);
this._UY._TN = _0b;
var _qZ = this._SY._rZ._sZ;
for (var _Mq = this._cZ; _Mq; _Mq = _Mq._YY) {
_Mq._JZ(_qZ, this._MV, this._MV)
}
},
_VN: function() {
return this._MV
},
_JC: function() {
return this._MV._mv
},
_KN: function() {
return this._UY._kb
},
_KZ: function() {
return this._UY._I3
},
_LZ: function() {
return this._UY._QN
},
_MZ: function(_xb) {
if (this._hP == _xY._yY) {
return
}
if (_ZN(_xb, _xb) > 0.0) {
this._gD(!0)
}
this._ZY = _xb
},
_NZ: function() {
return this._ZY
},
_OZ: function(_J3) {
if (this._hP == _xY._yY) {
return
}
if (_J3 * _J3 > 0.0) {
this._gD(!0);
}
this.__Y = _J3
},
_PZ: function() {
return this.__Y
},
_QZ: function(_RZ, _lT, _SZ) {
if (this._hP != _xY._6Z) {
return
}
if (_SZ && (this._MY & _xY._QY) == 0) {
this._gD(!0)
}
if (this._MY & _xY._QY) {
this._3Z._Wh(_RZ);
this._4Z += __N(_ZM._6N(_lT, this._UY._I3), _RZ)
}
},
_TZ: function(_RZ, _SZ) {
if (this._hP != _xY._6Z) {
return
}
if (_SZ && (this._MY & _xY._QY) == 0) {
this._gD(!0)
}
if (this._MY & _xY._QY) {
this._3Z._Wh(_RZ)
}
},
_UZ: function(_VZ, _SZ) {
if (this._hP != _xY._6Z) {
return
}
if (_SZ && (this._MY & _xY._QY) == 0) {
this._gD(!0);
}
if (this._MY & _xY._QY) {
this._4Z += _VZ
}
},
_WZ: function(_XZ, _lT, _SZ) {
if (this._hP != _xY._6Z) {
return
}
if (_SZ && (this._MY & _xY._QY) == 0) {
this._gD(!0)
}
if (this._MY & _xY._QY) {
this._ZY._Wh(_ZM._Vo(this._8Z, _XZ));
this.__Y += this._aZ * __N(_ZM._6N(_lT, this._UY._I3), _XZ)
}
},
_YZ: function(_XZ, _SZ) {
if (this._hP != _xY._6Z) {
return
}
if (_SZ && (this._MY & _xY._QY) == 0) {
this._gD(!0)
}
if (this._MY & _xY._QY) {
this.__Y += this._aZ * _XZ
}
},
_ZZ: function() {
return this._7Z
},
__Z: function() {
return this._9Z + this._7Z * _ZN(this._UY._QN, this._UY._QN)
},
_0_: function(data) {
data._eP = this._7Z;
data._fP = this._9Z + this._7Z * _ZN(this._UY._QN, this._UY._QN);
data._OO = this._UY._QN
},
_1_: function(_rP) {
_9M(this._SY._nZ() == !1);
if (this._SY._nZ() == !0) {
return
}
if (this._hP != _xY._6Z) {
return
}
this._8Z = 0.0;
this._9Z = 0.0;
this._aZ = 0.0;
this._7Z = _rP._eP;
if (this._7Z <= 0.0) {
this._7Z = 1.0
}
this._8Z = 1.0 / this._7Z;
if (_rP._fP > 0.0 && (this._MY & _xY._OY) == 0) {
this._9Z = _rP._fP - this._7Z * _ZN(_rP._OO, _rP._OO);
_9M(this._9Z > 0.0);
this._aZ = 1.0 / this._9Z;
}
_xY._hZ._2N(this._UY._I3);
this._UY._QN._2N(_rP._OO);
this._UY._RN._2N(_fO(this._MV, this._UY._QN));
this._UY._I3._2N(this._UY._RN);
this._ZY._Wh(_1O(this.__Y, _ZM._6N(this._UY._I3, _xY._hZ)))
},
_wZ: function() {
this._7Z = 0.0;
this._8Z = 0.0;
this._9Z = 0.0;
this._aZ = 0.0;
this._UY._QN.__M();
if (this._hP == _xY._yY || this._hP == _xY._eZ) {
this._UY._RN._2N(this._MV._mv);
this._UY._I3._2N(this._MV._mv);
this._UY._TN = this._UY._kb;
return
}
_9M(this._hP == _xY._6Z);
var _QN = new _ZM(0, 0);
for (var _Mq = this._cZ; _Mq; _Mq = _Mq._YY) {
if (_Mq._vZ == 0.0) {
continue
}
var _rP = new _dP();
_Mq._0_(_rP);
this._7Z += _rP._eP;
_QN._Wh(_ZM._Vo(_rP._eP, _rP._OO));
this._9Z += _rP._fP
}
if (this._7Z > 0.0) {
this._8Z = 1.0 / this._7Z;
_QN._Vo(this._8Z)
} else {
this._7Z = 1.0;
this._8Z = 1.0
}
if (this._9Z > 0.0 && (this._MY & _xY._OY) == 0) {
this._9Z -= this._7Z * _ZN(_QN, _QN);
_9M(this._9Z > 0.0);
this._aZ = 1.0 / this._9Z
} else {
this._9Z = 0.0;
this._aZ = 0.0
}
_xY._hZ._2N(this._UY._I3);
this._UY._QN._2N(_QN);
this._UY._RN._2N(_fO(this._MV, this._UY._QN));
this._UY._I3._2N(this._UY._RN);
this._ZY._Wh(_1O(this.__Y, _ZM._6N(this._UY._I3, _xY._hZ)))
},
_2_: function(_iT) {
return _fO(this._MV, _iT)
},
_3_: function(_4_) {
return _dO(this._MV._fu, _4_)
},
_5_: function(_6_) {
return _hO(this._MV, _6_)
},
_7_: function(_8_) {
return _eO(this._MV._fu, _8_)
},
_9_: function(_6_) {
return _ZM._Wh(this._ZY, _1O(this.__Y, _ZM._6N(_6_, this._UY._I3)))
},
_a_: function(_iT) {
return this._9_(this._2_(_iT))
},
_b_: function() {
return this._0Z
},
_bD: function(_BY) {
this._0Z = _BY
},
_c_: function() {
return this._1Z;
},
_dD: function(_CY) {
this._1Z = _CY
},
_d_: function() {
return this._2Z
},
_e_: function(scale) {
this._2Z = scale
},
_f_: function(type) {
_9M(this._SY._nZ() == !1);
if (this._SY._nZ() == !0) {
return
}
if (this._hP == type) {
return
}
this._hP = type;
this._wZ();
if (this._hP == _xY._yY) {
this._ZY.__M();
this.__Y = 0.0;
this._UY._TN = this._UY._kb;
this._UY._RN._2N(this._UY._I3);
this._g_()
}
this._gD(!0);
this._3Z.__M();
this._4Z = 0.0;
var _h_ = this._WY;
while (_h_) {
var _i_ = _h_;
_h_ = _h_._ni;
this._SY._rZ._GZ(_i_._BZ);
}
this._WY = null;
var _qZ = this._SY._rZ._sZ;
for (var _Mq = this._cZ; _Mq; _Mq = _Mq._YY) {
var _j_ = _Mq._7R;
for (var _H3 = 0; _H3 < _j_; ++_H3) {
_qZ._kR(_Mq._k_[_H3]._eR)
}
}
},
_jP: function() {
return this._hP
},
_l_: function(_m_) {
if (_m_) {
this._MY |= _xY._NY
} else {
this._MY &= ~_xY._NY
}
},
_n_: function() {
return (this._MY & _xY._NY) == _xY._NY
},
_o_: function(_m_) {
if (_m_) {
this._MY |= _xY._PY
} else {
this._MY &= ~_xY._PY;
this._gD(!0)
}
},
_p_: function() {
return (this._MY & _xY._PY) == _xY._PY
},
_gD: function(_m_) {
if (_m_) {
if ((this._MY & _xY._QY) == 0) {
this._MY |= _xY._QY;
this._5Z = 0.0
}
} else {
this._MY &= ~_xY._QY;
this._5Z = 0.0;
this._ZY.__M();
this.__Y = 0.0;
this._3Z.__M();
this._4Z = 0.0
}
},
_q_: function() {
return (this._MY & _xY._QY) == _xY._QY
},
_r_: function(_m_) {
_9M(this._SY._nZ() == !1);
if (_m_ == this._s_()) {
return
}
if (_m_) {
this._MY |= _xY._RY;
var _qZ = this._SY._rZ._sZ;
for (var _Mq = this._cZ; _Mq; _Mq = _Mq._YY) {
_Mq._tZ(_qZ, this._MV)
}
} else {
this._MY &= ~_xY._RY;
var _qZ = this._SY._rZ._sZ;
for (var _Mq = this._cZ; _Mq; _Mq = _Mq._YY) {
_Mq._HZ(_qZ)
}
var _h_ = this._WY;
while (_h_) {
var _i_ = _h_;
_h_ = _h_._ni;
this._SY._rZ._GZ(_i_._BZ)
}
this._WY = null
}
},
_s_: function() {
return (this._MY & _xY._RY) == _xY._RY
},
_t_: function(_m_) {
var status = (this._MY & _xY._OY) == _xY._OY;
if (status == _m_) {
return
}
if (_m_) {
this._MY |= _xY._OY
} else {
this._MY &= ~_xY._OY
}
this.__Y = 0.0;
this._wZ()
},
_u_: function() {
return (this._MY & _xY._OY) == _xY._OY
},
_v_: function() {
return this._cZ
},
_w_: function() {
return this._VY
},
_x_: function() {
return this._WY
},
_y_: function() {
return this._YY
},
_mR: function() {
return this._bZ
},
_z_: function(data) {
this._bZ = data
},
_A_: function() {
return this._SY
},
_g_: function() {
_xY._iZ._fu._gi(this._UY._TN);
_xY._iZ._mv._2N(_ZM._6N(this._UY._RN, _dO(_xY._iZ._fu, this._UY._QN)));
var _qZ = this._SY._rZ._sZ;
for (var _Mq = this._cZ; _Mq; _Mq = _Mq._YY) {
_Mq._JZ(_qZ, _xY._iZ, this._MV)
}
},
_B_: function() {
this._MV._fu._gi(this._UY._kb);
this._MV._mv._2N(_ZM._6N(this._UY._I3, _dO(this._MV._fu, this._UY._QN)));
},
_C_: function(_0U) {
if (this._hP != _xY._6Z && _0U._hP != _xY._6Z) {
return ! 1
}
for (var _D_ = this._VY; _D_; _D_ = _D_._ni) {
if (_D_._0U == _0U) {
if (_D_._E_._F_ == !1) {
return ! 1
}
}
}
return ! 0
},
_XN: function(alpha) {
this._UY._XN(alpha);
this._UY._I3._2N(this._UY._RN);
this._UY._kb = this._UY._TN;
this._MV._fu._gi(this._UY._kb);
this._MV._mv._2N(_ZM._6N(this._UY._I3, _dO(this._MV._fu, this._UY._QN)))
},
_dN: function(_eN) {
var _xr = _eN || {};
_xr['fixtures'] = null;
_xr['type'] = this._hP;
_xr['position'] = this._JC()._dN();
_xr['angle'] = this._KN();
_xr['linearVelocity'] = this._NZ()._dN();
_xr['angularVelocity'] = this._PZ();
_xr['linearDamping'] = this._b_();
_xr['angularDamping'] = this._c_();
_xr['allowSleep'] = this._p_();
_xr['awake'] = this._q_();
_xr['fixedRotation'] = this._u_();
_xr['bullet'] = this._n_();
_xr['active'] = this._s_();
_xr['gravityScale'] = this._d_();
return _xr
}
};
function _G_() {
this._H_ = 0x0001;
this._I_ = 0xFFFF;
this._J_ = 0
}
_G_.prototype = {
_u8: function() {
var _K_ = new _G_();
_K_._H_ = this._H_;
_K_._I_ = this._I_;
_K_._J_ = this._J_;
return _K_
},
_2N: function(_K_) {
this._H_ = _K_._H_;
this._I_ = _K_._I_;
this._J_ = _K_._J_
},
_dN: function(_eN) {
var _xr = _eN || {};
_xr['categoryBits'] = this._H_;
_xr['maskBits'] = this._I_;
_xr['groupIndex'] = this._J_;
return _xr
},
_fN: function(data) {
this._H_ = data['categoryBits'];
this._I_ = data['maskBits'];
this._J_ = data['groupIndex']
}
};
function _mZ() {
this._DP = null;
this._dR = null;
this._L_ = 0.2;
this._M_ = 0.0;
this._sP = 0.0;
this._N_ = !1;
this._K_ = new _G_();
Object.seal(this)
}
_mZ.prototype = {
_fN: function(data) {
this._L_ = data['friction'];
this._M_ = data['restitution'];
this._sP = data['density'];
this._N_ = data['isSensor'];
this._K_._fN(data['filter'])
}
};
function _O_() {
this._pP = new __T();
this._TC = null;
this._nP = 0;
this._eR = 0
};
function _oZ() {
this._bZ = null;
this._uZ = null;
this._YY = null;
this._k_ = null;
this._7R = 0;
this._P_ = null;
this._vZ = 0.0;
this._Q_ = new _G_();
this._R_ = !1;
this._S_ = 0;
this._T_ = 0
}
_oZ.prototype = {
_jP: function() {
return this._P_._jP()
},
_U_: function() {
return this._P_
},
_8D: function(_V_) {
if (_V_ != this._R_) {
this._uZ._gD(!0);
this._R_ = _V_
}
},
_W_: function() {
return this._R_
},
_X_: function(_K_) {
this._Q_ = _K_;
this._Y_()
},
_Z_: function() {
return this._Q_
},
_Y_: function() {
if (this._uZ == null) {
return
}
var _gQ = this._uZ._x_();
while (_gQ) {
var _BZ = _gQ._BZ;
var _CZ = _BZ._DZ();
var _EZ = _BZ._FZ();
if (_CZ == this || _EZ == this) {
_BZ.___()
}
_gQ = _gQ._ni
}
var _KY = this._uZ._A_();
if (_KY == null) {
return
}
var _qZ = _KY._rZ._sZ;
for (var _H3 = 0; _H3 < this._7R; ++_H3) {
_qZ._kR(this._k_[_H3]._eR);
}
},
_001: function() {
return this._uZ
},
_y_: function() {
return this._YY
},
_mR: function() {
return this._bZ
},
_z_: function(data) {
this._bZ = data
},
_lP: function(_mv) {
return this._P_._lP(this._uZ._VN(), _mv)
},
_mP: function(_4u, _2u, _nP) {
return this._P_._mP(_4u, _2u, this._uZ._VN(), _nP)
},
_0_: function(_rP) {
this._P_._qP(_rP, this._vZ)
},
_XC: function(_sP) {
_9M(_PM(_sP) && _sP >= 0.0);
this._vZ = _sP
},
_101: function() {
return this._vZ
},
_201: function() {
return this._S_
},
_2D: function(_L_) {
this._S_ = _L_
},
_301: function() {
return this._T_
},
__C: function(_M_) {
this._T_ = _M_
},
_401: function(_nP) {
_9M(0 <= _nP && _nP < this._7R);
return this._k_[_nP]._pP
},
_pZ: function(body, _kZ) {
this._bZ = _kZ._dR;
this._S_ = _kZ._L_;
this._T_ = _kZ._M_;
this._uZ = body;
this._YY = null;
this._Q_._2N(_kZ._K_);
this._R_ = _kZ._N_;
this._P_ = _kZ._DP._u8();
var _501 = this._P_._kP();
this._k_ = new Array(_501);
for (var _H3 = 0; _H3 < _501; ++_H3) {
this._k_[_H3] = new _O_();
this._k_[_H3]._TC = null;
this._k_[_H3]._eR = _3R._uR
}
this._7R = 0;
this._vZ = _kZ._sP
},
_GZ: function() {
_9M(this._7R == 0);
this._k_ = null;
this._P_ = null
},
_tZ: function(_qZ, _ON) {
_9M(this._7R == 0);
this._7R = this._P_._kP();
for (var _H3 = 0; _H3 < this._7R; ++_H3) {
var _601 = this._k_[_H3];
this._P_._oP(_601._pP, _ON, _H3);
_601._eR = _qZ._cR(_601._pP, _601);
_601._TC = this;
_601._nP = _H3
}
},
_HZ: function(_qZ) {
for (var _H3 = 0; _H3 < this._7R; ++_H3) {
var _601 = this._k_[_H3];
_qZ._gR(_601._eR);
_601._eR = _3R._uR
}
this._7R = 0
},
_JZ: function(_qZ, _701, _801) {
if (this._7R == 0) {
return
}
for (var _H3 = 0; _H3 < this._7R; ++_H3) {
var _601 = this._k_[_H3];
var _6U = new __T(),
_7U = new __T();
this._P_._oP(_6U, _701, _601._nP);
this._P_._oP(_7U, _801, _601._nP);
_601._pP._5U(_6U, _7U);
var _jR = _ZM._6N(_801._mv, _701._mv);
_qZ._iR(_601._eR, _601._pP, _jR)
}
},
_tP: function(_mv, _mk, _C9, _nP) {
this._P_._tP(this._uZ._VN(), _mv, _mk, _C9, _nP)
},
_dN: function(_eN) {
var _xr = _eN || {};
_xr['shape'] = null;
_xr['friction'] = this._S_;
_xr['restitution'] = this._T_;
_xr['density'] = this._vZ;
_xr['isSensor'] = this._R_;
_xr['filter'] = this._Q_._dN();
return _xr
}
};
function _901() {}
_901.prototype = {
_a01: function(_E_) {},
_b01: function(_TC) {},
_c01: function(_d01) {},
_e01: function(index) {}
};
function _f01() {}
_f01.prototype = {
_C_: function(_CZ, _EZ) {
var _g01 = _CZ._Z_();
var _h01 = _EZ._Z_();
if (_g01._J_ == _h01._J_ && _g01._J_ != 0) {
return _g01._J_ > 0
}
var _i01 = (_g01._I_ & _h01._H_) != 0 && (_g01._H_ & _h01._I_) != 0;
return _i01
}
};
function _j01() {
this._k01 = new Array(_fM);
this._l01 = new Array(_fM);
this._Ea = 0
}
function _m01() {}
_m01.prototype = {
_n01: function(_BZ) {},
_o01: function(_BZ) {},
_p01: function(_BZ, _q01) {},
_r01: function(_BZ, _XZ) {}
};
function _s01() {}
_s01.prototype = {
_t01: function(_TC) {
return ! 1
},
_u01: function(index) {
return ! 1
}
};
function _v01() {}
_v01.prototype = {
_t01: function(_TC, _lT, _vP, _GP) {},
_u01: function(index, _lT, _vP, _GP) {
return 0
}
};
function _w01() {
this._x01 = 0;
this._y01 = 0;
this._z01 = 0;
this._A01 = 0;
this._B01 = 0;
this._C01 = !1
}
function _D01() {
this._I3 = new _ZM();
this._kb = 0
}
function _E01() {
this._xb = new _ZM();
this._J3 = 0
}
function _F01() {
this._ML = new _w01();
this._G01 = null;
this._H01 = null
}
var _I01 = _RL._2M("step");
var _J01 = _RL._2M("collide", "step");
var _K01 = _RL._2M("solve", "step");
var _L01 = _RL._2M("solveTOI", "step");
var _M01 = _RL._2M("broadphase", "step");
function _xZ(_N01) {
this._rZ = new _O01();
this._P01 = null;
this._Q01 = null;
this._R01 = null;
this._VY = null;
this._S01 = 0;
this._T01 = 0;
this._U01 = !0;
this._V01 = !0;
this._W01 = !1;
this._X01 = !0;
this._Y01 = !0;
this._Z01 = _N01;
this._MY = _xZ.__01;
this._011 = 0.0;
this._111 = new _w01();
this._211 = new _311();
this._411 = new _511();
this._411._SY = this
}
function _611() {
this._qZ = null;
this._tR = null
}
_611.prototype = {
_KR: function(_eR) {
var _601 = this._qZ._mR(_eR);
return this._tR._t01(_601._TC)
}
};
function _711() {
this._qZ = null;
this._tR = null
}
_711.prototype = {
_XW: function(_2u, _eR) {
var _dR = this._qZ._mR(_eR);
var _601 = _dR;
var _TC = _601._TC;
var index = _601._nP;
var _4u = new _ZT();
var _K9 = _TC._mP(_4u, _2u, index);
if (_K9) {
var _GP = _4u._GP;
var _lT = _ZM._Wh(_ZM._Vo((1.0 - _GP), _2u._TO), _ZM._Vo(_GP, _2u._UO));
return this._tR._t01(_TC, _lT, _4u._vP, _GP)
}
return _2u._FP
}
};
_xZ._811 = new _PN();
_xZ._911 = new _PN();
_xZ._a11 = new _PN();
_xZ.prototype = {
_GZ: function() {
var _W9 = this._R01;
while (_W9) {
var _b11 = _W9._YY;
var _Mq = _W9._cZ;
while (_Mq) {
var _c11 = _Mq._YY;
_Mq._7R = 0;
_Mq._GZ();
_Mq = _c11
}
_W9 = _b11
}
},
_d11: function(listener) {
this._P01 = listener
},
_e11: function(_K_) {
this._rZ._f11 = _K_
},
_g11: function(listener) {
this._rZ._h11 = listener
},
_i11: function(_j11) {
this._Q01 = _j11
},
_yD: function(_kZ) {
_9M(this._nZ() == !1);
if (this._nZ()) {
return null
}
var _W9 = new _xY(_kZ, this);
_W9._XY = null;
_W9._YY = this._R01;
if (this._R01) {
this._R01._XY = _W9
}
this._R01 = _W9; ++this._S01;
return _W9
},
_k11: function(_W9) {
_9M(this._S01 > 0);
_9M(this._nZ() == !1);
if (this._nZ()) {
return
}
var _l11 = _W9._VY;
while (_l11) {
var _m11 = _l11;
_l11 = _l11._ni;
if (this._P01) {
this._P01._a01(_m11._E_)
}
this._n11(_m11._E_);
_W9._VY = _l11
}
_W9._VY = null;
var _h_ = _W9._WY;
while (_h_) {
var _i_ = _h_;
_h_ = _h_._ni;
this._rZ._GZ(_i_._BZ)
}
_W9._WY = null;
var _Mq = _W9._cZ;
while (_Mq) {
var _o11 = _Mq;
_Mq = _Mq._YY;
if (this._P01) {
this._P01._b01(_o11)
}
_o11._HZ(this._rZ._sZ);
_o11._GZ();
_W9._cZ = _Mq;
_W9._dZ -= 1
}
_W9._cZ = null;
_W9._dZ = 0;
if (_W9._XY) {
_W9._XY._YY = _W9._YY
}
if (_W9._YY) {
_W9._YY._XY = _W9._XY;
}
if (_W9 == this._R01) {
this._R01 = _W9._YY
}
_W9._p11 = !0; --this._S01
},
_q11: function(_kZ) {
_9M(this._nZ() == !1);
if (this._nZ()) {
return null
}
var __9 = _r11._pZ(_kZ);
__9._XY = null;
__9._YY = this._VY;
if (this._VY) {
this._VY._XY = __9
}
this._VY = __9; ++this._T01;
__9._s11._E_ = __9;
__9._s11._0U = __9._t11;
__9._s11._u11 = null;
__9._s11._ni = __9._v11._VY;
if (__9._v11._VY) __9._v11._VY._u11 = __9._s11;
__9._v11._VY = __9._s11;
__9._w11._E_ = __9;
__9._w11._0U = __9._v11;
__9._w11._u11 = null;
__9._w11._ni = __9._t11._VY;
if (__9._t11._VY) __9._t11._VY._u11 = __9._w11;
__9._t11._VY = __9._w11;
var _x11 = _kZ._x11;
var _y11 = _kZ._y11;
if (_kZ._z11 == !1) {
var _gQ = _y11._x_();
while (_gQ) {
if (_gQ._0U == _x11) {
_gQ._BZ.___()
}
_gQ = _gQ._ni
}
}
return __9
},
_n11: function(__9) {
_9M(this._nZ() == !1);
if (this._nZ()) {
return
}
var _z11 = __9._F_;
if (__9._XY) {
__9._XY._YY = __9._YY
}
if (__9._YY) {
__9._YY._XY = __9._XY
}
if (__9 == this._VY) {
this._VY = __9._YY
}
var _x11 = __9._v11;
var _y11 = __9._t11;
_x11._gD(!0);
_y11._gD(!0);
if (__9._s11._u11) {
__9._s11._u11._ni = __9._s11._ni
}
if (__9._s11._ni) {
__9._s11._ni._u11 = __9._s11._u11;
}
if (__9._s11 == _x11._VY) {
_x11._VY = __9._s11._ni
}
__9._s11._u11 = null;
__9._s11._ni = null;
if (__9._w11._u11) {
__9._w11._u11._ni = __9._w11._ni
}
if (__9._w11._ni) {
__9._w11._ni._u11 = __9._w11._u11
}
if (__9._w11 == _y11._VY) {
_y11._VY = __9._w11._ni
}
__9._w11._u11 = null;
__9._w11._ni = null;
_r11._GZ(__9);
_9M(this._T01 > 0); --this._T01;
if (_z11 == !1) {
var _gQ = _y11._x_();
while (_gQ) {
if (_gQ._0U == _x11) {
_gQ._BZ.___()
}
_gQ = _gQ._ni
}
}
},
_A11: function(_x01, _A01, _B01) {
_I01.start();
if (this._MY & _xZ._yZ) {
this._rZ._B11();
this._MY &= ~_xZ._yZ;
}
this._MY |= _xZ._C11;
this._111._x01 = _x01;
this._111._A01 = _A01;
this._111._B01 = _B01;
if (_x01 > 0.0) {
this._111._y01 = 1.0 / _x01
} else {
this._111._y01 = 0.0
}
this._111._z01 = this._011 * _x01;
this._111._C01 = this._U01; {
_J01.start();
this._rZ._3W();
_J01.stop()
}
if (this._X01 && this._111._x01 > 0.0) {
_K01.start();
this._411._rN(this._111);
this._rN(this._111);
_K01.stop()
}
if (this._V01 && this._111._x01 > 0.0) {
_L01.start();
this._D11(this._111);
_L01.stop()
}
if (this._111._x01 > 0.0) {
this._011 = this._111._y01
}
if (this._MY & _xZ.__01) {
this._E11()
}
this._MY &= ~_xZ._C11;
_I01.stop()
},
_E11: function() {
for (var body = this._R01; body; body = body._y_()) {
body._3Z._f3 = body._3Z._g3 = 0;
body._4Z = 0.0
}
},
_F11: function() {
if (this._Q01 == null) {
return
}
var _ZJ = this._Q01._GO();
if (_ZJ & _DO._ZO) {
for (var _W9 = this._R01; _W9; _W9 = _W9._y_()) {
var _ON = _W9._VN();
for (var _Mq = _W9._v_(); _Mq; _Mq = _Mq._y_()) {
if (_W9._s_() == !1) {
this._G11(_Mq, _ON, new _CO(0.5, 0.5, 0.3))
} else if (_W9._jP() == _xY._yY) {
this._G11(_Mq, _ON, new _CO(0.5, 0.9, 0.5))
} else if (_W9._jP() == _xY._eZ) {
this._G11(_Mq, _ON, new _CO(0.5, 0.5, 0.9))
} else if (_W9._q_() == !1) {
this._G11(_Mq, _ON, new _CO(0.6, 0.6, 0.6))
} else {
this._G11(_Mq, _ON, new _CO(0.9, 0.7, 0.7))
}
}
}
this._H11(this._411)
}
if (_ZJ & _DO.__O) {
for (var __9 = this._VY; __9; __9 = __9._y_()) {
this._I11(__9)
}
}
if (_ZJ & _DO._8P) {
var _bb = new _CO(0.3, 0.9, 0.9);
for (var _I3 = this._rZ._WY; _I3; _I3 = _I3._y_()) {
var _CZ = _I3._DZ();
var _EZ = _I3._FZ();
var _J11 = _CZ._401(_I3._K11())._2U();
var _L11 = _EZ._401(_I3._M11())._2U();
this._Q01._SO(_J11, _L11, _bb)
}
}
if (_ZJ & _DO._0P) {
var _bb = new _CO(0.9, 0.3, 0.9);
var _N11 = new _CO(0.3, 0.3, 0.9);
var _O11 = this._rZ._sZ;
for (var _W9 = this._R01; _W9; _W9 = _W9._y_()) {
if (_W9._s_() == !1) {
continue
}
for (var _Mq = _W9._v_(); _Mq; _Mq = _Mq._y_()) {
for (var _H3 = 0; _H3 < _Mq._7R; ++_H3) {
var _601 = _Mq._k_[_H3];
var _pP = _O11._lR(_601._eR);
var _UQ = [];
_UQ[0] = new _ZM(_pP._HP._f3, _pP._HP._g3);
_UQ[1] = new _ZM(_pP._IP._f3, _pP._HP._g3);
_UQ[2] = new _ZM(_pP._IP._f3, _pP._IP._g3);
_UQ[3] = new _ZM(_pP._HP._f3, _pP._IP._g3);
this._Q01._KO(_UQ, 4, _bb);
var _P11 = new __T();
_Mq._U_()._oP(_P11, _W9._VN(), 0);
var _UQ = [];
_UQ[0] = new _ZM(_P11._HP._f3, _P11._HP._g3);
_UQ[1] = new _ZM(_P11._IP._f3, _P11._HP._g3);
_UQ[2] = new _ZM(_P11._IP._f3, _P11._IP._g3);
_UQ[3] = new _ZM(_P11._HP._f3, _P11._IP._g3);
this._Q01._KO(_UQ, 4, _N11)
}
}
}
}
if (_ZJ & _DO._1P) {
for (var _W9 = this._R01; _W9; _W9 = _W9._y_()) {
var _ON = _W9._VN()._u8();
_ON._mv = _W9._KZ();
this._Q01._VO(_ON)
}
}
},
_Q11: function(_tR, _pP) {
var _R11 = new _611();
_R11._qZ = this._rZ._sZ;
_R11._tR = _tR;
this._rZ._sZ._wR(_R11, _pP);
this._411._Q11(_tR, _pP)
},
_mP: function(_tR, _S11, _T11) {
var _R11 = new _711();
_R11._qZ = this._rZ._sZ;
_R11._tR = _tR;
var _2u = new _YT();
_2u._FP = 1.0;
_2u._TO = _S11;
_2u._UO = _T11;
this._rZ._sZ._mP(_R11, _2u);
this._411._mP(_tR, _S11, _T11)
},
_U11: function() {
return this._R01
},
_w_: function() {
return this._VY
},
_x_: function() {
return this._rZ._WY
},
_V11: function(_m_) {
if (_m_ == this._Y01) {
return
}
this._Y01 = _m_;
if (this._Y01 == !1) {
for (var _W9 = this._R01; _W9; _W9 = _W9._YY) {
_W9._gD(!0)
}
}
},
_W11: function() {
return this._Y01
},
_X11: function(_m_) {
this._U01 = _m_
},
_Y11: function() {
return this._U01
},
_Z11: function(_m_) {
this._V01 = _m_
},
__11: function() {
return this._V01
},
_021: function(_m_) {
this._W01 = _m_
},
_121: function() {
return this._W01
},
_rR: function() {
return this._rZ._sZ._rR()
},
_221: function() {
return this._S01
},
_321: function() {
return this._T01
},
_421: function() {
return this._rZ._521
},
_CR: function() {
return this._rZ._sZ._CR()
},
_ER: function() {
return this._rZ._sZ._ER()
},
_GR: function() {
return this._rZ._sZ._GR()
},
_621: function(_N01) {
this._Z01 = _N01
},
_721: function() {
return this._Z01
},
_nZ: function() {
return (this._MY & _xZ._C11) == _xZ._C11
},
_821: function(_m_) {
if (_m_) {
this._MY |= _xZ.__01;
} else {
this._MY &= ~_xZ.__01
}
},
_921: function() {
return (this._MY & _xZ.__01) == _xZ.__01
},
_IR: function(_JR) {
_9M((this._MY & _xZ._C11) == 0);
if ((this._MY & _xZ._C11) == _xZ._C11) {
return
}
for (var _W9 = this._R01; _W9; _W9 = _W9._YY) {
_W9._MV._mv._6N(_JR);
_W9._UY._RN._6N(_JR);
_W9._UY._I3._6N(_JR)
}
for (var __9 = this._VY; __9; __9 = __9._YY) {
__9._IR(_JR)
}
this._rZ._sZ._IR(_JR)
},
_a21: function() {
return this._rZ
},
_rN: function(_ML) {
for (var _W9 = this._R01; _W9; _W9 = _W9._YY) {
_W9._TY._2N(_W9._MV)
}
this._211._zT(this._S01, this._rZ._521, this._T01, this._rZ._h11);
for (var _W9 = this._R01; _W9; _W9 = _W9._YY) {
_W9._MY &= ~_xY._fZ
}
for (var _I3 = this._rZ._WY; _I3; _I3 = _I3._YY) {
_I3._MY &= ~_b21._fZ
}
for (var __9 = this._VY; __9; __9 = __9._YY) {
__9._c21 = !1
}
var _d21 = this._S01;
var _Gi = new Array(_d21);
for (var _e21 = this._R01; _e21; _e21 = _e21._YY) {
if (_e21._MY & _xY._fZ) {
continue
}
if (_e21._q_() == !1 || _e21._s_() == !1) {
continue
}
if (_e21._jP() == _xY._yY) {
continue
}
this._211._zg();
var _f21 = 0;
_Gi[_f21++] = _e21;
_e21._MY |= _xY._fZ;
while (_f21 > 0) {
var _W9 = _Gi[--_f21];
_9M(_W9._s_() == !0);
this._211._g21(_W9);
_W9._gD(!0);
if (_W9._jP() == _xY._yY) {
continue
}
for (var _h_ = _W9._WY; _h_; _h_ = _h_._ni) {
var _BZ = _h_._BZ;
if (_BZ._MY & _b21._fZ) {
continue
}
if (_BZ._h21() == !1 || _BZ._i21() == !1) {
continue
}
var _j21 = _BZ._k21._R_;
var _l21 = _BZ._m21._R_;
if (_j21 || _l21) {
continue
}
this._211._n21(_BZ);
_BZ._MY |= _b21._fZ;
var _0U = _h_._0U;
if (_0U._MY & _xY._fZ) {
continue
}
_9M(_f21 < _d21);
_Gi[_f21++] = _0U;
_0U._MY |= _xY._fZ
}
for (var _l11 = _W9._VY; _l11; _l11 = _l11._ni) {
if (_l11._E_._c21 == !0) {
continue
}
var _0U = _l11._0U;
if (_0U._s_() == !1) {
continue
}
this._211._o21(_l11._E_);
_l11._E_._c21 = !0;
if (_0U._MY & _xY._fZ) {
continue
}
_9M(_f21 < _d21);
_Gi[_f21++] = _0U;
_0U._MY |= _xY._fZ
}
}
this._211._rN(_ML, this._Z01, this._Y01);
for (var _H3 = 0; _H3 < this._211._S01; ++_H3) {
var _W9 = this._211._p21[_H3];
if (_W9._jP() == _xY._yY) {
_W9._MY &= ~_xY._fZ
}
}
} {
_M01.start();
for (var _W9 = this._R01; _W9; _W9 = _W9._y_()) {
if ((_W9._MY & _xY._fZ) == 0) {
continue
}
if (_W9._jP() == _xY._yY) {
continue
}
_W9._g_();
}
this._rZ._B11();
_M01.stop()
}
},
_D11: function(_ML) {
this._211._zT(2 * _nM, _nM, 0, this._rZ._h11);
if (this._X01) {
for (var _W9 = this._R01; _W9; _W9 = _W9._YY) {
_W9._MY &= ~_xY._fZ;
_W9._UY._UN = 0.0
}
for (var _I3 = this._rZ._WY; _I3; _I3 = _I3._YY) {
_I3._MY &= ~ (_b21._gZ | _b21._fZ);
_I3._q21 = 0;
_I3._r21 = 1.0
}
}
for (;;) {
var _s21 = null;
var _t21 = 1.0;
for (var _I3 = this._rZ._WY; _I3; _I3 = _I3._YY) {
if (_I3._h21() == !1) {
continue
}
if (_I3._q21 > _mM) {
continue
}
var alpha = 1.0;
if (_I3._MY & _b21._gZ) {
alpha = _I3._r21
} else {
var _u21 = _I3._DZ();
var _v21 = _I3._FZ();
if (_u21._W_() || _v21._W_()) {
continue
}
var _w21 = _u21._001();
var _x21 = _v21._001();
var _cT = _w21._hP;
var _dT = _x21._hP;
_9M(_cT == _xY._6Z || _dT == _xY._6Z);
var _y21 = _w21._q_() && _cT != _xY._yY;
var _z21 = _x21._q_() && _dT != _xY._yY;
if (_y21 == !1 && _z21 == !1) {
continue
}
var _A21 = _w21._n_() || _cT != _xY._6Z;
var _B21 = _x21._n_() || _dT != _xY._6Z;
if (_A21 == !1 && _B21 == !1) {
continue
}
var _UN = _w21._UY._UN;
if (_w21._UY._UN < _x21._UY._UN) {
_UN = _x21._UY._UN;
_w21._UY._XN(_UN)
} else if (_x21._UY._UN < _w21._UY._UN) {
_UN = _w21._UY._UN;
_x21._UY._XN(_UN);
}
_9M(_UN < 1.0);
var _TR = _I3._K11();
var _UR = _I3._M11();
var _2u = new _IX();
_2u._WR._gi(_u21._U_(), _TR);
_2u._XR._gi(_v21._U_(), _UR);
_2u._JX._2N(_w21._UY);
_2u._KX._2N(_x21._UY);
_2u._LX = 1.0;
var _4u = new _MX();
_eY(_4u, _2u);
var _WN = _4u._V9;
if (_4u._Lz == _MX._PX) {
alpha = _qO(_UN + (1.0 - _UN) * _WN, 1.0)
} else {
alpha = 1.0
}
_I3._r21 = alpha;
_I3._MY |= _b21._gZ
}
if (alpha < _t21) {
_s21 = _I3;
_t21 = alpha
}
}
if (_s21 == null || 1.0 - 10.0 * _dM < _t21) {
this._X01 = !0;
break
}
var _u21 = _s21._DZ();
var _v21 = _s21._FZ();
var _w21 = _u21._001();
var _x21 = _v21._001();
_xZ._811._2N(_w21._UY);
_xZ._911._2N(_x21._UY);
_w21._XN(_t21);
_x21._XN(_t21);
_s21._Ag(this._rZ._h11);
_s21._MY &= ~_b21._gZ; ++_s21._q21;
if (_s21._h21() == !1 || _s21._i21() == !1) {
_s21._C21(!1);
_w21._UY._2N(_xZ._811);
_x21._UY._2N(_xZ._911);
_w21._B_();
_x21._B_();
continue
}
_w21._gD(!0);
_x21._gD(!0);
this._211._zg();
this._211._g21(_w21);
this._211._g21(_x21);
this._211._n21(_s21);
_w21._MY |= _xY._fZ;
_x21._MY |= _xY._fZ;
_s21._MY |= _b21._fZ;
var _D21 = [_w21, _x21];
for (var _H3 = 0; _H3 < 2; ++_H3) {
var body = _D21[_H3];
if (body._hP == _xY._6Z) {
for (var _h_ = body._WY; _h_; _h_ = _h_._ni) {
if (this._211._S01 == this._211._E21) {
break
}
if (this._211._521 == this._211._F21) {
break
}
var _BZ = _h_._BZ;
if (_BZ._MY & _b21._fZ) {
continue
}
var _0U = _h_._0U;
if (_0U._hP == _xY._6Z && body._n_() == !1 && _0U._n_() == !1) {
continue
}
var _j21 = _BZ._k21._R_;
var _l21 = _BZ._m21._R_;
if (_j21 || _l21) {
continue
}
_xZ._a11._2N(_0U._UY);
if ((_0U._MY & _xY._fZ) == 0) {
_0U._XN(_t21)
}
_BZ._Ag(this._rZ._h11);
if (_BZ._h21() == !1) {
_0U._UY._2N(_xZ._a11);
_0U._B_();
continue
}
if (_BZ._i21() == !1) {
_0U._UY._2N(_xZ._a11);
_0U._B_();
continue
}
_BZ._MY |= _b21._fZ;
this._211._n21(_BZ);
if (_0U._MY & _xY._fZ) {
continue
}
_0U._MY |= _xY._fZ;
if (_0U._hP != _xY._yY) {
_0U._gD(!0)
}
this._211._g21(_0U)
}
}
}
var _G21 = new _w01();
_G21._x01 = (1.0 - _t21) * _ML._x01;
_G21._y01 = 1.0 / _G21._x01;
_G21._z01 = 1.0;
_G21._B01 = 20;
_G21._A01 = _ML._A01;
_G21._C01 = !1;
this._211._D11(_G21, _w21._LY, _x21._LY);
for (var _H3 = 0; _H3 < this._211._S01; ++_H3) {
var body = this._211._p21[_H3];
body._MY &= ~_xY._fZ;
if (body._hP != _xY._6Z) {
continue
}
body._g_();
for (var _h_ = body._WY; _h_; _h_ = _h_._ni) {
_h_._BZ._MY &= ~ (_b21._gZ | _b21._fZ)
}
}
this._rZ._B11();
if (this._W01) {
this._X01 = !1;
break
}
}
},
_I11: function(_E_) {
var _x11 = _E_._H21();
var _y11 = _E_._I21();
var _yU = _x11._VN();
var _AU = _y11._VN();
var _G9 = _yU._mv;
var _I9 = _AU._mv;
var _TO = _E_._J21();
var _UO = _E_._K21();
var _bb = new _CO(0.5, 0.8, 0.8);
switch (_E_._jP()) {
case _r11._L21:
this._Q01._SO(_TO, _UO, _bb);
break;
case _r11._M21:
{
var _N21 = _E_;
var _lp = _N21._O21();
var _mp = _N21._P21();
this._Q01._SO(_lp, _TO, _bb);
this._Q01._SO(_mp, _UO, _bb);
this._Q01._SO(_lp, _mp, _bb)
}
break;
case _r11._Q21:
break;
case _r11._R21:
this._Q01._S21(_E_._T21(), 5.0, _bb);
default:
this._Q01._SO(_G9, _TO, _bb);
this._Q01._SO(_TO, _UO, _bb);
this._Q01._SO(_I9, _UO, _bb)
}
},
_G11: function(_TC, _ON, _bb) {
switch (_TC._jP()) {
case _gP._wP:
{
var _MR = _TC._U_();
var _OO = _fO(_ON, _MR._CP);
var _PO = _MR._iP;
var _RO = _dO(_ON._fu, new _ZM(1.0, 0.0));
this._Q01._QO(_OO, _PO, _RO, _bb)
}
break;
case _gP._xP:
{
var _gQ = _TC._U_();
var _hc = _fO(_ON, _gQ._QP);
var _ic = _fO(_ON, _gQ._RP);
this._Q01._SO(_hc, _ic, _bb)
}
break;
case _gP._zP:
{
var _OR = _TC._U_();
var _Ea = _OR._3Q;
var _rb = _OR._2Q;
var _hc = _fO(_ON, _rb[0]);
for (var _H3 = 1; _H3 < _Ea; ++_H3) {
var _ic = _fO(_ON, _rb[_H3]);
this._Q01._SO(_hc, _ic, _bb);
_hc = _ic
}
}
break;
case _gP._yP:
{
var _U21 = _TC._U_();
var _LO = _U21._3Q;
_9M(_LO <= _gM);
var _rb = new Array(_gM);
for (var _H3 = 0; _H3 < _LO; ++_H3) {
_rb[_H3] = _fO(_ON, _U21._2Q[_H3])
}
this._Q01._MO(_rb, _LO, _bb)
}
break;
default:
break
}
},
_V21: function() {
return this._411._V21()
},
_W21: function(_Ea) {
this._411._W21(_Ea)
},
_X21: function(_sP) {
this._411._X21(_sP);
},
_Y21: function() {
return this._411._Y21()
},
_Z21: function(_IY) {
this._411._Z21(_IY)
},
__21: function() {
return this._411.__21()
},
_031: function(_131) {
this._411._031(_131)
},
_231: function() {
return this._411._231()
},
_331: function(_PO) {
this._411._331(_PO)
},
_431: function() {
return this._411._431()
},
_531: function(_kZ) {
_9M(this._nZ() == !1);
if (this._nZ()) {
return 0
}
var _mv = this._411._531(_kZ);
return _mv
},
_631: function(index, _731) {
this._411._631(index, _731)
},
_831: function(_DP, _ON, _731) {
_9M(this._nZ() == !1);
if (this._nZ()) {
return 0
}
return this._411._831(_DP, _ON, _731)
},
_931: function(_kZ) {
_9M(this._nZ() == !1);
if (this._nZ()) {
return null
}
var _jb = this._411._931(_kZ);
return _jb
},
_a31: function(_b31, _c31) {
_9M(this._nZ() == !1);
if (this._nZ()) {
return
}
this._411._a31(_b31, _c31)
},
_d31: function(_d01, _731) {
_9M(this._nZ() == !1);
if (this._nZ()) {
return
}
this._411._d31(_d01, _731)
},
_e31: function() {
return this._411._e31()
},
_f31: function() {
return this._411._f31()
},
_g31: function() {
return this._411._g31()
},
_h31: function() {
return this._411._h31();
},
_i31: function() {
return this._411._i31()
},
_j31: function() {
return this._411._j31()
},
_k31: function(buffer, _l31) {
this._411._k31(buffer, _l31)
},
_m31: function(buffer, _l31) {
this._411._m31(buffer, _l31)
},
_n31: function(buffer, _l31) {
this._411._n31(buffer, _l31)
},
_o31: function(buffer, _l31) {
this._411._o31(buffer, _l31)
},
_p31: function(buffer, _l31) {
this._411._p31(buffer, _l31)
},
_q31: function() {
return this._411._r31
},
_s31: function() {
return this._411._521
},
_t31: function() {
return this._411._u31
},
_v31: function() {
return this._411._w31
},
_x31: function() {
return this._411._x31()
},
_y31: function() {
return this._411._y31()
},
_z31: function() {
return this._411._z31()
},
_A31: function() {
return this._411._A31()
},
_H11: function(_B31) {
var _C31 = _B31._A31();
if (_C31) {
var _D31 = _B31._431();
var _E31 = _B31._f31();
if (_B31._F31.data) {
var _G31 = _B31._h31();
this._Q01._WO(_E31, _D31, _G31, _C31)
} else {
this._Q01._WO(_E31, _D31, null, _C31)
}
}
}
};
_xZ._yZ = 0x0001;
_xZ._C11 = 0x0002;
_xZ.__01 = 0x0004;
function _H31(_l31) {
this._I31 = new Array(_l31);
this.__V = 0;
this._J31 = 0;
this._K31 = _l31
}
_H31.prototype = {
_L31: function(_oi) {
if (this._J31 >= this._K31) return;
this._I31[this._J31++] = _oi
},
_M31: function() {
_9M(this.__V < this._J31);
this.__V++
},
_N31: function() {
return this.__V >= this._J31
},
_O31: function() {
return this._I31[this.__V]
}
};
function _P31(_Q31) {
this._R31 = new Array(_Q31);
this._S31 = 0;
this._T31 = 0;
this._U31 = 0;
this._V31 = null
}
_P31._W31 = function() {
this._OO = new _ZM();
this._X31 = 0
};
_P31._Y31 = function(_f3, _g3, _H3, _jb) {
this._Z31 = _f3;
this.__31 = _g3;
this._041 = _H3;
this._141 = _jb
};
_P31.prototype = {
_241: function(_OO, _X31) {
var _jb = (this._R31[this._S31++] = new _P31._W31());
_jb._OO._2N(_OO);
_jb._X31 = _X31
},
_341: function(_PO) {
_9M(this._V31 == null);
var _441 = 1 / _PO;
var _Sz = new _ZM( + _cM, +_cM);
var _zQ = new _ZM( - _cM, -_cM);
for (var _eT = 0; _eT < this._S31; _eT++) {
var _jb = this._R31[_eT];
_Sz._2N(_rO(_Sz, _jb._OO));
_zQ._2N(_tO(_zQ, _jb._OO))
}
this._T31 = 1 + ((_441 * (_zQ._f3 - _Sz._f3)) >>> 0);
this._U31 = 1 + ((_441 * (_zQ._g3 - _Sz._g3)) >>> 0);
this._V31 = new Array(this._T31 * this._U31);
for (var _H3 = 0; _H3 < this._T31 * this._U31; _H3++) this._V31[_H3] = null;
var _Di = new _H31(this._T31 * this._T31);
for (var _eT = 0; _eT < this._S31; _eT++) {
var _jb = this._R31[_eT];
_jb._OO._2N(_ZM._Vo(_441, _ZM._6N(_jb._OO, _Sz)));
var _f3 = _sO(0, _qO(Math.floor(_jb._OO._f3), this._T31 - 1));
var _g3 = _sO(0, _qO(Math.floor(_jb._OO._g3), this._U31 - 1));
_Di._L31(new _P31._Y31(_f3, _g3, _f3 + _g3 * this._T31, _jb))
}
while (!_Di._N31()) {
var _f3 = _Di._O31()._Z31;
var _g3 = _Di._O31().__31;
var _H3 = _Di._O31()._041;
var _jb = _Di._O31()._141;
_Di._M31();
if (!this._V31[_H3]) {
this._V31[_H3] = _jb;
if (_f3 > 0) {
_Di._L31(new _P31._Y31(_f3 - 1, _g3, _H3 - 1, _jb))
}
if (_g3 > 0) {
_Di._L31(new _P31._Y31(_f3, _g3 - 1, _H3 - this._T31, _jb));
}
if (_f3 < this._T31 - 1) {
_Di._L31(new _P31._Y31(_f3 + 1, _g3, _H3 + 1, _jb))
}
if (_g3 < this._U31 - 1) {
_Di._L31(new _P31._Y31(_f3, _g3 + 1, _H3 + this._T31, _jb))
}
}
}
var _541 = this._T31 + this._U31;
for (var _641 = 0; _641 < _541; _641++) {
for (var _g3 = 0; _g3 < this._U31; _g3++) {
for (var _f3 = 0; _f3 < this._T31 - 1; _f3++) {
var _H3 = _f3 + _g3 * this._T31;
var _kb = this._V31[_H3];
var _W9 = this._V31[_H3 + 1];
if (_kb != _W9) {
_Di._L31(new _P31._Y31(_f3, _g3, _H3, _W9));
_Di._L31(new _P31._Y31(_f3 + 1, _g3, _H3 + 1, _kb))
}
}
}
for (var _g3 = 0; _g3 < this._U31 - 1; _g3++) {
for (var _f3 = 0; _f3 < this._T31; _f3++) {
var _H3 = _f3 + _g3 * this._T31;
var _kb = this._V31[_H3];
var _W9 = this._V31[_H3 + this._T31];
if (_kb != _W9) {
_Di._L31(new _P31._Y31(_f3, _g3, _H3, _W9));
_Di._L31(new _P31._Y31(_f3, _g3 + 1, _H3 + this._T31, _kb))
}
}
}
var _741 = !1;
while (!_Di._N31()) {
var _f3 = _Di._O31()._Z31;
var _g3 = _Di._O31().__31;
var _H3 = _Di._O31()._041;
var _eT = _Di._O31()._141;
_Di._M31();
var _kb = this._V31[_H3];
var _W9 = _eT;
if (_kb != _W9) {
var _841 = _kb._OO._f3 - _f3;
var _941 = _kb._OO._g3 - _g3;
var _a41 = _W9._OO._f3 - _f3;
var _b41 = _W9._OO._g3 - _g3;
var _DH = _841 * _841 + _941 * _941;
var _ht = _a41 * _a41 + _b41 * _b41;
if (_DH > _ht) {
this._V31[_H3] = _W9;
if (_f3 > 0) {
_Di._L31(new _P31._Y31(_f3 - 1, _g3, _H3 - 1, _W9))
}
if (_g3 > 0) {
_Di._L31(new _P31._Y31(_f3, _g3 - 1, _H3 - this._T31, _W9))
}
if (_f3 < this._T31 - 1) {
_Di._L31(new _P31._Y31(_f3 + 1, _g3, _H3 + 1, _W9))
}
if (_g3 < this._U31 - 1) {
_Di._L31(new _P31._Y31(_f3, _g3 + 1, _H3 + this._T31, _W9))
}
_741 = !0
}
}
}
if (!_741) {
break
}
}
},
_c41: function(_tR) {
for (var _g3 = 0; _g3 < this._U31 - 1; _g3++) {
for (var _f3 = 0; _f3 < this._T31 - 1; _f3++) {
var _H3 = _f3 + _g3 * this._T31;
var _kb = this._V31[_H3];
var _W9 = this._V31[_H3 + 1];
var _I3 = this._V31[_H3 + this._T31];
var _mk = this._V31[_H3 + 1 + this._T31];
if (_W9 != _I3) {
if (_kb != _W9 && _kb != _I3) {
_tR(_kb._X31, _W9._X31, _I3._X31)
}
if (_mk != _W9 && _mk != _I3) {
_tR(_W9._X31, _mk._X31, _I3._X31)
}
}
}
}
}
};
function _d41(_T9, _jb, _W9, _kb) {
if (_T9 instanceof _CO) {
this._T9 = (255 * _T9._T9);
this._jb = (255 * _T9._jb);
this._W9 = (255 * _T9._W9);
this._kb = 255
} else if (typeof(_T9) !== 'undefined') {
this._T9 = _T9;
this._jb = _jb;
this._W9 = _W9;
this._kb = _kb
} else this._T9 = this._jb = this._W9 = this._kb = 0
}
_d41.prototype = {
_e41: function() {
return ! this._T9 && !this._jb && !this._W9 && !this._kb
},
_f41: function() {
return new _CO(1.0 / 255 * this._T9, 1.0 / 255 * this._jb, 1.0 / 255 * this._W9)
},
_gi: function(_g41, _h41, _i41, _j41) {
if (_g41 instanceof _CO) {
this._T9 = (255 * _g41._T9);
this._jb = (255 * _g41._jb);
this._W9 = (255 * _g41._W9);
this._kb = 255
} else {
this._T9 = _g41;
this._jb = _h41;
this._W9 = _i41;
this._kb = _j41
}
},
_2N: function(_k41) {
this._T9 = _k41._T9;
this._jb = _k41._jb;
this._W9 = _k41._W9;
this._kb = _k41._kb
},
_u8: function() {
return new _d41(this._T9, this._jb, this._W9, this._kb)
}
};
_d41._l41 = new _d41();
function _m41() {
this._ZJ = 0;
this.position = new _ZM();
this._n41 = new _ZM();
this._bb = new _d41();
this._dR = null
}
_m41._o41 = 0;
_m41._p41 = 1 << 1;
_m41._q41 = 1 << 2;
_m41._r41 = 1 << 3;
_m41._s41 = 1 << 4;
_m41._t41 = 1 << 5;
_m41._u41 = 1 << 6;
_m41._v41 = 1 << 7;
_m41._w41 = 1 << 8;
_m41._x41 = 1 << 9;
function _y41() {
this._ZJ = 0;
this._z41 = 0;
this.position = new _ZM();
this._0b = 0;
this._zY = new _ZM();
this._AY = 0;
this._bb = new _d41();
this._A41 = 1;
this._DP = null;
this._B41 = !0;
this._dR = null
}
function _C41() {
this._D41 = null;
this._E41 = 0;
this._F41 = 0;
this._G41 = 0;
this._H41 = 1.0;
this._XY = null;
this._YY = null;
this._I41 = -1;
this._7Z = 0;
this._J41 = 0;
this._K41 = new _ZM();
this._ZY = new _ZM();
this.__Y = 0;
this._L41 = new _NN();
this._L41._nN();
this._M41 = !0;
this._N41 = !1;
this._O41 = !1;
this._bZ = null;
}
_C41.prototype = {
_y_: function() {
return this._YY
},
_A31: function() {
return this._F41 - this._E41
},
_P41: function() {
return this._E41
},
_Q41: function() {
return this._G41
},
_R41: function(_ZJ) {
this._G41 = _ZJ
},
_ZZ: function() {
this._S41();
return this._7Z
},
__Z: function() {
this._S41();
return this._J41
},
_2U: function() {
this._S41();
return this._K41
},
_NZ: function() {
this._S41();
return this._ZY
},
_PZ: function() {
this._S41();
return this.__Y
},
_VN: function() {
return this._L41
},
_JC: function() {
return this._L41._mv
},
_KN: function() {
return this._L41._fu._KN()
},
_mR: function() {
return this._bZ
},
_z_: function(data) {
this._bZ = data
},
_S41: function() {
if (this._I41 != this._D41._I41) {
var _F9 = this._D41._T41();
this._7Z = 0;
this._K41.__M();
this._ZY.__M();
for (var _H3 = this._E41; _H3 < this._F41; _H3++) {
this._7Z += _F9;
this._K41._Wh(_ZM._Vo(_F9, this._D41._U41.data[_H3]));
this._ZY._Wh(_ZM._Vo(_F9, this._D41._V41.data[_H3]))
}
if (this._7Z > 0) {
this._K41._Vo(1 / this._7Z);
this._ZY._Vo(1 / this._7Z)
}
this._J41 = 0;
this.__Y = 0;
for (var _H3 = this._E41; _H3 < this._F41; _H3++) {
var _mv = _ZM._6N(this._D41._U41.data[_H3], this._K41);
var _xb = _ZM._6N(this._D41._V41.data[_H3], this._ZY);
this._J41 += _F9 * _ZN(_mv, _mv);
this.__Y += _F9 * __N(_mv, _xb)
}
if (this._J41 > 0) {
this.__Y *= 1 / this._J41
}
this._I41 = this._D41._I41
}
}
};
_C41._W41 = 1 << 0;
_C41._X41 = 1 << 1;
function _Y41() {
this._TR = this._UR = 0;
this._ZJ = 0;
this._Z41 = 0.0;
this._vP = new _ZM()
};
function __41() {
this.index = 0;
this.body = null;
this._Z41 = 0.0;
this._vP = new _ZM();
this._eP = 0.0
};
function _511() {
this._I41 = 0;
this._051 = 0;
this._151 = 0;
this._vZ = 1;
this._251 = 1;
this._2Z = 1;
this._351 = 1;
this._451 = 1;
this._551 = 1;
this._3Q = 0;
this._651 = 0;
this._751 = 0;
this._851 = new _511._951();
this._U41 = new _511._951();
this._V41 = new _511._951();
this._a51 = null;
this._b51 = null;
this._c51 = null;
this._F31 = new _511._951();
this._d51 = null;
this._e51 = new _511._951();
this._7R = 0;
this._f51 = 0;
this._g51 = null;
this._521 = 0;
this._F21 = 0;
this._r31 = null;
this._w31 = 0;
this._h51 = 0;
this._u31 = null;
this._8R = 0;
this._i51 = 0;
this._9R = null;
this._j51 = 0;
this._k51 = 0;
this._l51 = null;
this._m51 = 0;
this._n51 = null;
this._o51 = 0.05;
this._p51 = 1.0;
this._q51 = 0.25;
this._r51 = 0.25;
this._s51 = 0.25;
this._t51 = 0.1;
this._u51 = 0.2;
this._v51 = 0.5;
this._w51 = 0.5;
this._x51 = 0.5;
this._SY = null
}
_511._951 = function() {
this.data = null;
this._y51 = 0
};
_511._z51 = function() {
this.index = 0;
this._X31 = 0
};
_511._z51._A51 = function(_kb, _W9) {
return _kb._X31 < _W9._X31
};
_511._z51._B51 = function(_kb, _W9) {
return _kb < _W9._X31
};
_511._z51._C51 = function(_kb, _W9) {
return _kb._X31 < _W9
};
_511._D51 = function() {
this._TR = this._UR = 0;
this._ZJ = 0;
this._A41 = 0.0;
this._uP = 0.0
};
_511._E51 = function() {
this._TR = this._UR = this._F51 = 0;
this._ZJ = 0;
this._A41 = 0.0;
this._G51 = new _ZM(),
this._H51 = new _ZM(),
this._k41 = new _ZM();
this._I51 = 0.0,
this._J51 = 0.0,
this._K51 = 0.0,
this._9q = 0.0
};
_511._L51 = _m41._r41;
_511._M51 = _m41._s41;
_511._N51 = _m41._u41;
_511._O51 = 12;
_511._P51 = 12;
_511._Q51 = 8 * 4;
_511._R51 = 1 << (_511._P51 - 1);
_511._S51 = _511._Q51 - _511._P51;
_511._T51 = _511._Q51 - _511._P51 - _511._O51;
_511._U51 = 1 << _511._T51;
_511._V51 = _511._U51 * (1 << (_511._O51 - 1));
_511._W51 = (1 << _511._O51) - 1;
_511._X51 = (1 << _511._P51) - 1;
function _Y51(_f3, _g3) {
return ((_g3 + _511._R51) << _511._S51) + (_511._U51 * _f3 + _511._V51) >>> 0;
}
function _Z51(_X31, _f3, _g3) {
return _X31 + (_g3 << _511._S51) + (_f3 << _511._T51)
}
function __51(_l31, _061) {
return _061 && _l31 > _061 ? _061: _l31
}
function _161(_BZ) {
return (_BZ._ZJ & _m41._p41) == _m41._p41
}
_511.prototype = {
_261: function(_361, _461, _561) {
_9M(_561 > _461);
var _661 = (_361) ? _361.slice() : [];
_661.length = _561;
return _661
},
_761: function(buffer, _y51, _461, _561, _861) {
_9M(_561 > _461);
_9M(!_y51 || _561 <= _y51);
if ((!_861 || buffer) && !_y51) {
buffer = this._261(buffer, _461, _561)
}
return buffer
},
_961: function(buffer, _461, _561, _861) {
_9M(_561 > _461);
return this._761(buffer.data, buffer._y51, _461, _561, _861)
},
_a61: function(buffer) {
if (!buffer) {
buffer = new Array(this._651);
for (var _H3 = 0; _H3 < this._651; _H3++) {
buffer[_H3] = 0
}
}
return buffer
},
_531: function(_kZ) {
if (this._3Q >= this._651) {
var _l31 = this._3Q ? 2 * this._3Q: _GM;
_l31 = __51(_l31, this._751);
_l31 = __51(_l31, this._851._y51);
_l31 = __51(_l31, this._U41._y51);
_l31 = __51(_l31, this._V41._y51);
_l31 = __51(_l31, this._F31._y51);
_l31 = __51(_l31, this._e51._y51);
if (this._651 < _l31) {
this._851.data = this._961(this._851, this._651, _l31, !1);
this._U41.data = this._961(this._U41, this._651, _l31, !1);
this._V41.data = this._961(this._V41, this._651, _l31, !1);
this._a51 = this._761(this._a51, 0, this._651, _l31, !1);
this._b51 = this._761(this._b51, 0, this._651, _l31, !0);
this._c51 = this._761(this._c51, 0, this._651, _l31, !0);
this._F31.data = this._961(this._F31, this._651, _l31, !0);
this._d51 = this._761(this._d51, 0, this._651, _l31, !1);
this._e51.data = this._961(this._e51, this._651, _l31, !0);
this._651 = _l31
}
}
if (this._3Q >= this._651) {
return _AM
}
var index = this._3Q++;
this._851.data[index] = _kZ._ZJ;
this._U41.data[index] = _kZ.position._u8();
this._V41.data[index] = _kZ._n41._u8();
this._d51[index] = null;
if (this._c51) {
this._c51[index] = 0
}
if (this._F31.data || !_kZ._bb._e41()) {
this._F31.data = this._a61(this._F31.data);
this._F31.data[index] = _kZ._bb._u8()
}
if (this._e51.data || _kZ._dR) {
this._e51.data = this._a61(this._e51.data);
this._e51.data[index] = _kZ._dR
}
if (this._7R >= this._f51) {
var _461 = this._f51;
var _561 = this._7R ? 2 * this._7R: _GM;
this._g51 = this._261(this._g51, _461, _561);
this._f51 = _561
}
this._g51[this._7R] = new _511._z51();
this._g51[this._7R++].index = index;
return index
},
_631: function(index, _731) {
var _ZJ = _m41._p41;
if (_731) {
_ZJ |= _m41._x41
}
this._851.data[index] |= _ZJ
},
_831: function(_DP, _ON, _731) {
function _b61(_B31, _DP, _ON, _731) {
this._D41 = _B31;
this._P_ = _DP;
this._MV = _ON;
this._c61 = _731;
this._p11 = 0
}
_b61.prototype = {
_t01: function(_TC) {
return ! 1
},
_u01: function(index) {
_9M(index >= 0 && index < this._D41._3Q);
if (this._P_._lP(this._MV, this._D41._U41.data[index])) {
this._D41._631(index, this._c61);
this._p11++
}
return ! 0
},
_d61: function() {
return this._p11
}
};
var _tR = new _b61(this, _DP, _ON, _731);
var _pP = new __T();
_DP._oP(_pP, _ON, 0);
this._SY._Q11(_tR, _pP);
return _tR._d61()
},
_d31: function(_d01, _731) {
for (var _H3 = _d01._E41; _H3 < _d01._F41; _H3++) {
this._631(_H3, _731)
}
},
_931: function(_e61) {
var _7c = this._f61();
var identity = new _NN();
identity._nN();
var transform = identity._u8();
var _g61 = this._3Q;
if (_e61._DP) {
var _h61 = new _m41();
_h61._ZJ = _e61._ZJ;
_h61._bb = _e61._bb;
_h61._dR = _e61._dR;
var _DP = _e61._DP;
transform._gi(_e61.position, _e61._0b);
var _pP = new __T();
var _501 = _DP._kP();
for (var _nP = 0; _nP < _501; _nP++) {
if (_nP == 0) {
_DP._oP(_pP, identity, _nP)
} else {
var _i61 = new __T();
_DP._oP(_i61, identity, _nP);
_pP._5U(_i61)
}
}
for (var _g3 = Math.floor(_pP._HP._g3 / _7c) * _7c; _g3 < _pP._IP._g3; _g3 += _7c) {
for (var _f3 = Math.floor(_pP._HP._f3 / _7c) * _7c; _f3 < _pP._IP._f3; _f3 += _7c) {
var _mv = new _ZM(_f3, _g3);
if (_DP._lP(identity, _mv)) {
_mv = _fO(transform, _mv);
_h61.position._2N(_mv);
_h61._n41._2N(_ZM._Wh(_e61._zY, _1O(_e61._AY, _ZM._6N(_mv, _e61.position))));
this._531(_h61)
}
}
}
}
var lastIndex = this._3Q;
var _d01 = new _C41();
_d01._D41 = this;
_d01._E41 = _g61;
_d01._F41 = lastIndex;
_d01._G41 = _e61._z41;
_d01._H41 = _e61._A41;
_d01._bZ = _e61._dR;
_d01._L41 = transform;
_d01._M41 = _e61._B41;
_d01._XY = null;
_d01._YY = this._n51;
if (this._n51) {
this._n51._XY = _d01
}
this._n51 = _d01; ++this._m51;
for (var _H3 = _g61; _H3 < lastIndex; _H3++) {
this._d51[_H3] = _d01
}
this._j61(!0);
if (_e61._ZJ & _511._L51) {
for (var _eT = 0; _eT < this._521; _eT++) {
var _BZ = this._r31[_eT];
var _kb = _BZ._TR;
var _W9 = _BZ._UR;
if (_kb > _W9) {
var _k61 = _kb;
_kb = _W9;
_W9 = _k61
}
if (_g61 <= _kb && _W9 < lastIndex) {
if (this._8R >= this._i51) {
var _461 = this._i51;
var _561 = this._8R ? 2 * this._8R: _GM;
this._9R = this._261(this._9R, _461, _561);
this._i51 = _561
}
var _BR = this._9R[this._8R] = new _511._D51();
_BR._TR = _kb;
_BR._UR = _W9;
_BR._ZJ = _BZ._ZJ;
_BR._A41 = _e61._A41;
_BR._uP = _4O(this._U41.data[_kb], this._U41.data[_W9]);
this._8R++
}
}
}
if (_e61._ZJ & _511._M51) {
var _l61 = new _P31(lastIndex - _g61);
for (var _H3 = _g61; _H3 < lastIndex; _H3++) {
_l61._241(this._U41.data[_H3], _H3)
}
_l61._341(_7c / 2);
var _tR = function _m61(_kb, _W9, _I3) {
var _G51 = this._U41.data[_kb];
var _H51 = this._U41.data[_W9];
var _k41 = this._U41.data[_I3];
var _n61 = _ZM._6N(_G51, _H51);
var _o61 = _ZM._6N(_H51, _k41);
var _p61 = _ZM._6N(_k41, _G51);
var _q61 = _FM * this._551;
if (_r61(_n61, _n61) < _q61 && _r61(_o61, _o61) < _q61 && _r61(_p61, _p61) < _q61) {
if (this._j51 >= this._k51) {
var _461 = this._k51;
var _561 = this._j51 ? 2 * this._j51: _GM;
this._l51 = this._261(this._l51, _461, _561);
this._k51 = _561
}
var _s61 = this._l51[this._j51];
_s61._TR = _kb;
_s61._UR = _W9;
_s61._F51 = _I3;
_s61._ZJ = this._851.data[_kb] | this._851.data[_W9] | this._851.data[_I3];
_s61._A41 = _e61._A41;
var _t61 = _ZM._Vo(1.0 / 3.0, _ZM._Wh(_G51, _ZM._Wh(_H51, _k41)));
_s61._G51 = _ZM._6N(_G51, _t61);
_s61._H51 = _ZM._6N(_H51, _t61);
_s61._k41 = _ZM._6N(_k41, _t61);
_s61._I51 = -_ZN(_p61, _n61);
_s61._J51 = -_ZN(_n61, _o61);
_s61._K51 = -_ZN(_o61, _p61);
_s61._9q = __N(_G51, _H51) + __N(_H51, _k41) + __N(_k41, _G51);
this._j51++
}
};
_l61._c41(_tR)
}
if (_e61._z41 & _m41._W41) {
_u61(_d01)
}
return _d01
},
_a31: function(_b31, _c31) {
_9M(_b31 != _c31);
this._v61(_c31._E41, _c31._F41, this._3Q);
_9M(_c31._F41 == this._3Q);
this._v61(_b31._E41, _b31._F41, _c31._E41);
this._9M(_b31._F41 == _c31._E41);
var _w61 = 0;
for (var _H3 = _b31._E41; _H3 < _c31._F41; _H3++) {
_w61 |= this._851.data[_H3]
}
this._j61(!0);
if (_w61 & _511._L51) {
for (var _eT = 0; _eT < this._521; _eT++) {
var _BZ = this._r31[_eT];
var _kb = _BZ._TR;
var _W9 = _BZ._UR;
if (_kb > _W9) {
var _k61 = _kb;
_kb = _W9;
_W9 = _k61
}
if (_b31._E41 <= _kb && _kb < _b31._F41 && _c31._E41 <= _W9 && _W9 < _c31._F41) {
if (this._8R >= this._i51) {
var _461 = this._i51;
var _561 = this._8R ? 2 * this._8R: _GM;
this._9R = this._261(this._9R, _461, _561);
this._i51 = _561
}
var _BR = this._9R[this._8R] = new _511._D51();
_BR._TR = _kb;
_BR._UR = _W9;
_BR._ZJ = _BZ._ZJ;
_BR._A41 = _qO(_b31._H41, _c31._H41);
_BR._uP = _4O(this._U41.data[_kb], this._U41.data[_W9]);
this._8R++
}
}
}
if (_w61 & _511._M51) {
var _l61 = new _P31(_c31._F41 - _b31._E41);
for (var _H3 = _b31._E41; _H3 < _c31._F41; _H3++) {
if (! (this._851.data[_H3] & _m41._p41)) {
_l61._241(this._U41.data[_H3], _H3)
}
}
_l61._341(this._f61() / 2);
var _tR = new _x61();
_tR._B31 = this;
_tR._b31 = _b31;
_tR._c31 = _c31;
_l61._c41(_tR)
}
for (var _H3 = _c31._E41; _H3 < _c31._F41; _H3++) {
this._d51[_H3] = _b31
}
var _z41 = _b31._G41 | _c31._G41;
_b31._G41 = _z41;
_b31._F41 = _c31._F41;
_c31._E41 = _c31._F41;
this._y61(_c31);
if (_z41 & _m41._W41) {
this._u61(_b31)
}
},
_y61: function(_d01) {
_9M(this._m51 > 0);
_9M(_d01);
if (this._SY._P01) {
this._SY._P01._z61(_d01)
}
for (var _H3 = _d01._E41; _H3 < _d01._F41; _H3++) {
this._d51[_H3] = null
}
if (_d01._XY) {
_d01._XY._YY = _d01._YY
}
if (_d01._YY) {
_d01._YY._XY = _d01._XY
}
if (_d01 == this._n51) {
this._n51 = _d01._YY
}--this._m51
},
_u61: function(_d01) {
for (var _H3 = _d01._E41; _H3 < _d01._F41; _H3++) {
this._a51[_H3] = 0
}
for (var _eT = 0; _eT < this._521; _eT++) {
var _BZ = this._r31[_eT];
var _kb = _BZ._TR;
var _W9 = _BZ._UR;
if (_kb >= _d01._E41 && _kb < _d01._F41 && _W9 >= _d01._E41 && _W9 < _d01._F41) {
var _J3 = _BZ._Z41;
this._a51[_kb] += _J3;
this._a51[_W9] += _J3
}
}
this._c51 = this._a61(this._c51);
for (var _H3 = _d01._E41; _H3 < _d01._F41; _H3++) {
var _J3 = this._a51[_H3];
this._c51[_H3] = _J3 < 0.8 ? 0 : _cM
}
var _A61 = _d01._A31();
for (var _V9 = 0; _V9 < _A61; _V9++) {
var _741 = !1;
for (var _eT = 0; _eT < this._521; _eT++) {
var _BZ = this._r31[_eT];
var _kb = _BZ._TR;
var _W9 = _BZ._UR;
if (_kb >= _d01._E41 && _kb < _d01._F41 && _W9 >= _d01._E41 && _W9 < _d01._F41) {
var _T9 = 1 - _BZ._Z41;
var _B61 = this._c51[_kb];
var _C61 = this._c51[_W9];
var _D61 = _C61 + _T9;
var _E61 = _B61 + _T9;
if (_B61 > _D61) {
_B61 = _D61;
_741 = !0;
}
if (_C61 > _E61) {
_C61 = _E61;
_741 = !0
}
this._c51[_kb] = _B61;
this._c51[_W9] = _C61
}
}
if (!_741) {
break
}
}
for (var _H3 = _d01._E41; _H3 < _d01._F41; _H3++) {
var _mv = this._c51[_H3];
if (_mv < _cM) {
_mv *= this._351
} else {
_mv = 0
}
this._c51[_H3] = _mv
}
},
_n21: function(_kb, _W9) {
var _mk = _ZM._6N(this._U41.data[_W9], this._U41.data[_kb]);
var _F61 = _ZN(_mk, _mk);
if (_F61 < this._551) {
if (this._521 >= this._F21) {
var _461 = this._F21;
var _561 = this._521 ? 2 * this._521: _GM;
this._r31 = this._261(this._r31, _461, _561);
this._F21 = _561
}
var _G61 = _YM(_F61);
var _BZ = this._r31[this._521] = new _Y41();
_BZ._TR = _kb;
_BZ._UR = _W9;
_BZ._ZJ = this._851.data[_kb] | this._851.data[_W9];
_BZ._Z41 = 1 - _F61 * _G61 * this._451;
_BZ._vP._2N(_ZM._Vo(_G61, _mk));
this._521++
}
},
_j61: function(_H61) {
var _I61 = 0;
var _J61 = this._7R;
for (var _K61 = _I61; _K61 < _J61; ++_K61) {
var _601 = this._g51[_K61];
var _H3 = _601.index;
var _mv = this._U41.data[_H3];
_601._X31 = _Y51(this._451 * _mv._f3, this._451 * _mv._g3)
}
this._g51._GL(_I61, _J61,
function(_kb, _W9) {
return _511._z51._A51(_kb, _W9)
});
this._521 = 0;
for (var _kb = _I61,
_I3 = _I61; _kb < _J61; _kb++) {
var _L61 = _Z51(this._g51[_kb]._X31, 1, 0);
for (var _W9 = _kb + 1; _W9 < _J61; _W9++) {
if (_L61 < this._g51[_W9]._X31) break;
this._n21(this._g51[_kb].index, this._g51[_W9].index)
}
var _M61 = _Z51(this._g51[_kb]._X31, -1, 1);
for (; _I3 < _J61; _I3++) {
if (_M61 <= this._g51[_I3]._X31) break
}
var _N61 = _Z51(this._g51[_kb]._X31, 1, 1);
for (var _W9 = _I3; _W9 < _J61; _W9++) {
if (_N61 < this._g51[_W9]._X31) break;
this._n21(this._g51[_kb].index, this._g51[_W9].index)
}
}
if (_H61) {
this._521 = this._r31._JL(_161, this._521)
}
},
_O61: function() {
var _pP = new __T();
_pP._HP._f3 = +_cM;
_pP._HP._g3 = +_cM;
_pP._IP._f3 = -_cM;
_pP._IP._g3 = -_cM;
for (var _H3 = 0; _H3 < this._3Q; _H3++) {
var _mv = this._U41.data[_H3];
_pP._HP._2N(_rO(_pP._HP, _mv));
_pP._IP._2N(_tO(_pP._IP, _mv))
}
_pP._HP._f3 -= this._351;
_pP._HP._g3 -= this._351;
_pP._IP._f3 += this._351;
_pP._IP._g3 += this._351;
this._w31 = 0;
function _P61(_B31) {
this._D41 = _B31
}
_P61.prototype = {
_t01: function(_TC) {
if (_TC._W_()) {
return ! 0
}
var _DP = _TC._U_();
var _W9 = _TC._001();
var _O11 = _W9._KZ();
var _Q61 = _W9._ZZ();
var _R61 = _W9.__Z() - _Q61 * _W9._LZ()._8N();
var _S61 = _Q61 > 0 ? 1 / _Q61: 0;
var _T61 = _R61 > 0 ? 1 / _R61: 0;
var _501 = _DP._kP();
for (var _nP = 0; _nP < _501; _nP++) {
var _pP = _TC._401(_nP)._u8();
_pP._HP._f3 -= this._D41._351;
_pP._HP._g3 -= this._D41._351;
_pP._IP._f3 += this._D41._351;
_pP._IP._g3 += this._D41._351;
var _I61 = 0;
var _J61 = this._D41._7R;
var _U61 = this._D41._g51._LL(_I61, _J61, _Y51(this._D41._451 * _pP._HP._f3, this._D41._451 * _pP._HP._g3),
function(_kb, _W9) {
return _511._z51._C51(_kb, _W9)
});
var _V61 = this._D41._g51._OL(_U61, _J61, _Y51(this._D41._451 * _pP._IP._f3, this._D41._451 * _pP._IP._g3),
function(_kb, _W9) {
return _511._z51._B51(_kb, _W9)
});
for (var _601 = _U61; _601 != _V61; ++_601) {
var _W61 = this._D41._g51[_601];
var _kb = _W61.index;
var _X61 = this._D41._U41.data[_kb];
if (_pP._HP._f3 <= _X61._f3 && _X61._f3 <= _pP._IP._f3 && _pP._HP._g3 <= _X61._g3 && _X61._g3 <= _pP._IP._g3) {
var _mk = [0];
var _C9 = new _ZM();
_TC._tP(_X61, _mk, _C9, _nP);
if (_mk[0] < this._D41._351) {
var _Y61 = this._D41._851.data[_kb] & _m41._q41 ? 0 : this._D41._Z61();
var __61 = _ZM._6N(_X61, _O11);
var _071 = __N(__61, _C9);
if (this._D41._w31 >= this._D41._h51) {
var _461 = this._D41._h51;
var _561 = this._D41._w31 ? 2 * this._D41._w31: _GM;
this._D41._u31 = this._D41._261(this._D41._u31, _461, _561);
this._D41._h51 = _561
}
var _BZ = this._D41._u31[this._D41._w31] = new __41();
_BZ.index = _kb;
_BZ.body = _W9;
_BZ._Z41 = 1 - _mk[0] * this._D41._451;
_BZ._vP._2N(_C9._3N());
_BZ._eP = 1 / (_Y61 + _S61 + _T61 * _071 * _071);
this._D41._w31++
}
}
}
}
return ! 0
},
_u01: function(_H3) {
return ! 1
}
};
var _tR = new _P61(this);
this._SY._Q11(_tR, _pP)
},
_rN: function(_ML) {++this._I41;
if (this._3Q == 0) {
return
}
this._051 = 0;
for (var _H3 = 0; _H3 < this._3Q; _H3++) {
this._051 |= this._851.data[_H3]
}
if (this._051 & _m41._p41) {
this._171()
}
this._151 = 0;
for (var _d01 = this._n51; _d01; _d01 = _d01._y_()) {
this._151 |= _d01._G41
}
var _N01 = _ZM._Vo(_ML._x01 * this._2Z, this._SY._721());
var _271 = this._371(_ML);
for (var _H3 = 0; _H3 < this._3Q; _H3++) {
var _xb = this._V41.data[_H3];
_xb._Wh(_N01);
var _ic = _ZN(_xb, _xb);
if (_ic > _271) {
_xb._Vo(_WM(_271 / _ic))
}
}
this._471(_ML);
if (this._151 & _C41._X41) {
this._571(_ML)
}
if (this._051 & _m41._q41) {
this._671(_ML)
}
for (var _H3 = 0; _H3 < this._3Q; _H3++) {
this._U41.data[_H3]._Wh(_ZM._Vo(_ML._x01, this._V41.data[_H3]))
}
this._O61();
this._j61(!1);
if (this._051 & _m41._t41) {
this._771(_ML)
}
if (this._051 & _m41._u41) {
this._871(_ML)
}
if (this._051 & _m41._v41) {
this._971(_ML)
}
if (this._051 & _m41._s41) {
this._a71(_ML)
}
if (this._051 & _m41._r41) {
this._b71(_ML)
}
if (this._151 & _C41._W41) {
this._c71(_ML)
}
if (this._051 & _m41._w41) {
this._d71(_ML)
}
this._e71(_ML);
this._f71(_ML)
},
_471: function(_ML) {
var _pP = new __T();
_pP._HP._f3 = +_cM;
_pP._HP._g3 = +_cM;
_pP._IP._f3 = -_cM;
_pP._IP._g3 = -_cM;
for (var _H3 = 0; _H3 < this._3Q; _H3++) {
var _xb = this._V41.data[_H3];
var _TO = this._U41.data[_H3];
var _UO = _ZM._Wh(_TO, _ZM._Vo(_ML._x01, _xb));
_pP._HP = _rO(_pP._HP, _rO(_TO, _UO));
_pP._IP = _tO(_pP._IP, _tO(_TO, _UO))
}
function _g71(_B31, _ML) {
this._D41 = _B31;
this._h71 = _ML
}
_g71.prototype = {
_t01: function(_TC) {
if (_TC._W_()) {
return ! 0
}
var _DP = _TC._U_();
var body = _TC._001();
var _I61 = 0;
var _J61 = this._D41._7R;
var _501 = _DP._kP();
for (var _nP = 0; _nP < _501; _nP++) {
var _pP = _TC._401(_nP)._u8();
_pP._HP._f3 -= this._D41._351;
_pP._HP._g3 -= this._D41._351;
_pP._IP._f3 += this._D41._351;
_pP._IP._g3 += this._D41._351;
var _U61 = this._D41._g51._LL(_I61, _J61, _Y51(this._D41._451 * _pP._HP._f3, this._D41._451 * _pP._HP._g3),
function(_kb, _W9) {
return _511._z51._C51(_kb, _W9)
});
var _V61 = this._D41._g51._OL(_U61, _J61, _Y51(this._D41._451 * _pP._IP._f3, this._D41._451 * _pP._IP._g3),
function(_kb, _W9) {
return _511._z51._B51(_kb, _W9)
});
for (var _601 = _U61; _601 != _V61; ++_601) {
var _W61 = this._D41._g51[_601];
var _kb = _W61.index;
var _X61 = this._D41._U41.data[_kb];
if (_pP._HP._f3 <= _X61._f3 && _X61._f3 <= _pP._IP._f3 && _pP._HP._g3 <= _X61._g3 && _X61._g3 <= _pP._IP._g3) {
var _i71 = this._D41._V41.data[_kb];
var _4u = new _ZT();
var _2u = new _YT();
_2u._TO = _fO(body._MV, _hO(body._TY, _X61));
_2u._UO = _ZM._Wh(_X61, _ZM._Vo(this._h71._x01, _i71));
_2u._FP = 1;
if (_TC._mP(_4u, _2u, _nP)) {
var _mv = _ZM._Wh(_ZM._Wh(_ZM._Vo((1 - _4u._GP), _2u._TO), _ZM._Vo(_4u._GP, _2u._UO)), _ZM._Vo(_jM, _4u._vP));
var _xb = _ZM._Vo(this._h71._y01, _ZM._6N(_mv, _X61));
this._D41._V41.data[_kb]._2N(_xb);
var _Mq = _ZM._Vo(this._D41._T41(), _ZM._6N(_i71, _xb));
_Mq = _ZM._Vo(_ZN(_Mq, _4u._vP), _4u._vP);
body._WZ(_Mq, _mv, !0)
}
}
}
}
return ! 0
},
_u01: function(_H3) {
return ! 1
}
};
var _tR = new _g71(this, _ML);
this._SY._Q11(_tR, _pP)
},
_e71: function(_ML) {
for (var _H3 = 0; _H3 < this._3Q; _H3++) {
this._a51[_H3] = 0
}
for (var _eT = 0; _eT < this._w31; _eT++) {
var _BZ = this._u31[_eT];
var _kb = _BZ.index;
var _J3 = _BZ._Z41;
this._a51[_kb] += _J3
}
for (var _eT = 0; _eT < this._521; _eT++) {
var _BZ = this._r31[_eT];
var _kb = _BZ._TR;
var _W9 = _BZ._UR;
var _J3 = _BZ._Z41;
this._a51[_kb] += _J3;
this._a51[_W9] += _J3
}
if (this._051 & _511._N51) {
for (var _H3 = 0; _H3 < this._3Q; _H3++) {
if (this._851.data[_H3] & _511._N51) {
this._a51[_H3] = 0
}
}
}
var _j71 = this._o51 * this._k71(_ML);
for (var _H3 = 0; _H3 < this._3Q; _H3++) {
var _J3 = this._a51[_H3];
var _K3 = _j71 * _sO(0.0, _qO(_J3, _DM) - _CM);
this._a51[_H3] = _K3
}
var _l71 = _ML._x01 / (this._vZ * this._351);
for (var _eT = 0; _eT < this._w31; _eT++) {
var _BZ = this._u31[_eT];
var _kb = _BZ.index;
var _W9 = _BZ.body;
var _J3 = _BZ._Z41;
var _F9 = _BZ._eP;
var _C9 = _BZ._vP;
var _mv = this._U41.data[_kb];
var _K3 = this._a51[_kb] + _j71 * _J3;
var _Mq = _ZM._Vo(_l71 * _J3 * _F9 * _K3, _C9);
this._V41.data[_kb]._6N(_ZM._Vo(this._Z61(), _Mq));
_W9._WZ(_Mq, _mv, !0)
}
for (var _eT = 0; _eT < this._521; _eT++) {
var _BZ = this._r31[_eT];
var _kb = _BZ._TR;
var _W9 = _BZ._UR;
var _J3 = _BZ._Z41;
var _C9 = _BZ._vP;
var _K3 = this._a51[_kb] + this._a51[_W9];
var _Mq = _ZM._Vo(_l71 * _J3 * _K3, _C9);
this._V41.data[_kb]._6N(_Mq);
this._V41.data[_W9]._Wh(_Mq)
}
},
_f71: function(_ML) {
var _131 = this._p51;
for (var _eT = 0; _eT < this._w31; _eT++) {
var _BZ = this._u31[_eT];
var _kb = _BZ.index;
var _W9 = _BZ.body;
var _J3 = _BZ._Z41;
var _F9 = _BZ._eP;
var _C9 = _BZ._vP;
var _mv = this._U41.data[_kb];
var _xb = _ZM._6N(_W9._9_(_mv), this._V41.data[_kb]);
var _m71 = _ZN(_xb, _C9);
if (_m71 < 0) {
var _Mq = _ZM._Vo(_131 * _J3 * _F9 * _m71, _C9);
this._V41.data[_kb]._Wh(_ZM._Vo(this._Z61(), _Mq));
_W9._WZ(_Mq._3N(), _mv, !0)
}
}
for (var _eT = 0; _eT < this._521; _eT++) {
var _BZ = this._r31[_eT];
var _kb = _BZ._TR;
var _W9 = _BZ._UR;
var _J3 = _BZ._Z41;
var _C9 = _BZ._vP;
var _xb = _ZM._6N(this._V41.data[_W9], this._V41.data[_kb]);
var _m71 = _ZN(_xb, _C9);
if (_m71 < 0) {
var _Mq = _ZM._Vo(_131 * _J3 * _m71, _C9);
this._V41.data[_kb]._Wh(_Mq);
this._V41.data[_W9]._6N(_Mq)
}
}
},
_671: function(_ML) {
for (var _H3 = 0; _H3 < this._3Q; _H3++) {
if (this._851.data[_H3] & _m41._q41) {
this._V41.data[_H3].__M()
}
}
},
_571: function(_ML) {
for (var _d01 = this._n51; _d01; _d01 = _d01._y_()) {
if (_d01._G41 & _C41._X41) {
_d01._S41();
var _i5 = new _JN(_ML._x01 * _d01.__Y);
var transform = new _NN(_ZM._Wh(_d01._K41, _ZM._6N(_ZM._Vo(_ML._x01, _d01._ZY), _dO(_i5, _d01._K41))), _i5);
_d01._L41 = _iO(transform, _d01._L41);
var _n71 = new _NN();
_n71._mv._f3 = _ML._y01 * transform._mv._f3;
_n71._mv._g3 = _ML._y01 * transform._mv._g3;
_n71._fu._9q = _ML._y01 * transform._fu._9q;
_n71._fu._I3 = _ML._y01 * (transform._fu._I3 - 1);
for (var _H3 = _d01._E41; _H3 < _d01._F41; _H3++) {
this._V41.data[_H3]._2N(_fO(_n71, this._U41.data[_H3]))
}
}
}
},
_a71: function(_ML) {
var _o71 = _ML._y01 * this._q51;
for (var _eT = 0; _eT < this._j51; _eT++) {
var _s61 = this._l51[_eT];
if (_s61._ZJ & _m41._s41) {
var _kb = _s61._TR;
var _W9 = _s61._UR;
var _I3 = _s61._F51;
var _k61 = _s61._G51;
var _p71 = _s61._H51;
var _q71 = _s61._k41;
var _G51 = this._U41.data[_kb];
var _H51 = this._U41.data[_W9];
var _k41 = this._U41.data[_I3];
var _mv = _ZM._Vo(1 / 3, _ZM._Wh(_G51, _ZM._Wh(_H51, _k41)));
var _T9 = new _JN();
_T9._9q = __N(_k61, _G51) + __N(_p71, _H51) + __N(_q71, _k41);
_T9._I3 = _ZN(_k61, _G51) + _ZN(_p71, _H51) + _ZN(_q71, _k41);
var _dt = _T9._9q * _T9._9q + _T9._I3 * _T9._I3;
var _r71 = _YM(_dt);
_T9._9q *= _r71;
_T9._I3 *= _r71;
var _A41 = _o71 * _s61._A41;
this._V41.data[_kb]._Wh(_ZM._Vo(_A41, (_ZM._6N(_s71(_T9, _k61), (_ZM._6N(_G51, _mv))))));
this._V41.data[_W9]._Wh(_ZM._Vo(_A41, (_ZM._6N(_s71(_T9, _p71), (_ZM._6N(_H51, _mv))))));
this._V41.data[_I3]._Wh(_ZM._Vo(_A41, (_ZM._6N(_s71(_T9, _q71), (_ZM._6N(_k41, _mv))))))
}
}
},
_b71: function(_ML) {
var _t71 = _ML._y01 * this._r51;
for (var _eT = 0; _eT < this._8R; _eT++) {
var _BR = this._9R[_eT];
if (_BR._ZJ & _m41._r41) {
var _kb = _BR._TR;
var _W9 = _BR._UR;
var _mk = _ZM._6N(this._U41.data[_W9], this._U41.data[_kb]);
var _u71 = _BR._uP;
var _ct = _mk._7N();
var _A41 = _t71 * _BR._A41;
var _Mq = _ZM._Vo(_A41 * (_u71 - _ct) / _ct, _mk);
this._V41.data[_kb]._6N(_Mq);
this._V41.data[_W9]._Wh(_Mq)
}
}
},
_971: function(_ML) {
this._b51 = this._a61(this._b51);
for (var _H3 = 0; _H3 < this._3Q; _H3++) {
this._a51[_H3] = 0;
this._b51[_H3] = new _ZM()
}
for (var _eT = 0; _eT < this._521; _eT++) {
var _BZ = this._r31[_eT];
if (_BZ._ZJ & _m41._v41) {
var _kb = _BZ._TR;
var _W9 = _BZ._UR;
var _J3 = _BZ._Z41;
var _C9 = _BZ._vP;
this._a51[_kb] += _J3;
this._a51[_W9] += _J3;
this._b51[_kb]._6N(_ZM._Vo((1 - _J3) * _J3, _C9));
this._b51[_W9]._Wh(_ZM._Vo((1 - _J3) * _J3, _C9))
}
}
var _v71 = this._t51 * this._w71(_ML);
var _x71 = this._u51 * this._w71(_ML);
for (var _eT = 0; _eT < this._521; _eT++) {
var _BZ = this._r31[_eT];
if (_BZ._ZJ & _m41._v41) {
var _kb = _BZ._TR;
var _W9 = _BZ._UR;
var _J3 = _BZ._Z41;
var _C9 = _BZ._vP;
var _K3 = this._a51[_kb] + this._a51[_W9];
var _9q = _ZM._6N(this._b51[_W9], this._b51[_kb]);
var _y71 = (_v71 * (_K3 - 2) + _x71 * _ZN(_9q, _C9)) * _J3;
var _Mq = _ZM._Vo(_y71, _C9);
this._V41.data[_kb]._6N(_Mq);
this._V41.data[_W9]._Wh(_Mq)
}
}
},
_771: function(_ML) {
var _z71 = this._s51;
for (var _eT = 0; _eT < this._w31; _eT++) {
var _BZ = this._u31[_eT];
var _kb = _BZ.index;
if (this._851.data[_kb] & _m41._t41) {
var _W9 = _BZ.body;
var _J3 = _BZ._Z41;
var _F9 = _BZ._eP;
var _mv = this._U41.data[_kb];
var _xb = _ZM._6N(_W9._9_(_mv), this._V41.data[_kb]);
var _Mq = _ZM._Vo(_z71 * _F9 * _J3, _xb);
this._V41.data[_kb]._Wh(_ZM._Vo(this._Z61(), _Mq));
_W9._WZ(_Mq._3N(), _mv, !0)
}
}
for (var _eT = 0; _eT < this._521; _eT++) {
var _BZ = this._r31[_eT];
if (_BZ._ZJ & _m41._t41) {
var _kb = _BZ._TR;
var _W9 = _BZ._UR;
var _J3 = _BZ._Z41;
var _xb = _ZM._6N(this._V41.data[_W9], this._V41.data[_kb]);
var _Mq = _ZM._Vo(_z71 * _J3, _xb);
this._V41.data[_kb]._Wh(_Mq);
this._V41.data[_W9]._6N(_Mq)
}
}
},
_871: function(_ML) {
var _A71 = this._v51 * this._w71(_ML);
var _B71 = 1.0 - _BM;
for (var _eT = 0; _eT < this._w31; _eT++) {
var _BZ = this._u31[_eT];
var _kb = _BZ.index;
if (this._851.data[_kb] & _m41._u41) {
var _J3 = _BZ._Z41;
if (_J3 > _B71) {
var _W9 = _BZ.body;
var _F9 = _BZ._eP;
var _mv = this._U41.data[_kb];
var _C9 = _BZ._vP;
var _Mq = _ZM._Vo(_A71 * _F9 * (_J3 - _B71), _C9);
this._V41.data[_kb]._6N(_ZM._Vo(this._Z61(), _Mq));
_W9._WZ(_Mq, _mv, !0)
}
}
}
for (var _eT = 0; _eT < this._521; _eT++) {
var _BZ = this._r31[_eT];
if (_BZ._ZJ & _m41._u41) {
var _J3 = _BZ._Z41;
if (_J3 > _B71) {
var _kb = _BZ._TR;
var _W9 = _BZ._UR;
var _C9 = _BZ._vP;
var _Mq = _ZM._Vo(_A71 * (_J3 - _B71), _C9);
this._V41.data[_kb]._6N(_Mq);
this._V41.data[_W9]._Wh(_Mq)
}
}
}
},
_c71: function(_ML) {
this._c51 = this._a61(this._c51);
var _C71 = _ML._y01 * this._w51;
for (var _eT = 0; _eT < this._521; _eT++) {
var _BZ = this._r31[_eT];
var _kb = _BZ._TR;
var _W9 = _BZ._UR;
if (this._d51[_kb] != this._d51[_W9]) {
var _J3 = _BZ._Z41;
var _C9 = _BZ._vP;
var _K3 = this._c51[_kb] + this._c51[_W9];
var _Mq = _ZM._Vo(_C71 * _K3 * _J3, _C9);
this._V41.data[_kb]._6N(_Mq);
this._V41.data[_W9]._Wh(_Mq)
}
}
},
_d71: function(_ML) {
this._F31.data = this._a61(this._F31.data);
var _D71 = Math.floor(256 * this._x51);
for (var _eT = 0; _eT < this._521; _eT++) {
var _BZ = this._r31[_eT];
var _kb = _BZ._TR;
var _W9 = _BZ._UR;
if (this._851.data[_kb] & this._851.data[_W9] & _m41._w41) {
var _E71 = this._F31.data[_kb];
var _F71 = this._F31.data[_W9];
var _G71 = (_D71 * (_F71._T9 - _E71._T9)) >> 8;
var _H71 = (_D71 * (_F71._jb - _E71._jb)) >> 8;
var _I71 = (_D71 * (_F71._W9 - _E71._W9)) >> 8;
var _J71 = (_D71 * (_F71._kb - _E71._kb)) >> 8;
_E71._T9 += _G71;
_E71._jb += _H71;
_E71._W9 += _I71;
_E71._kb += _J71;
_F71._T9 -= _G71;
_F71._jb -= _H71;
_F71._W9 -= _I71;
_F71._kb -= _J71
}
}
},
_171: function() {
var _K71 = 0;
var _L71 = new Array(this._3Q);
for (var _H3 = 0; _H3 < this._3Q; _H3++) {
var _ZJ = this._851.data[_H3];
if (_ZJ & _m41._p41) {
var _M71 = this._SY._P01;
if ((_ZJ & _m41._x41) && _M71) {
_M71._e01(_H3)
}
_L71[_H3] = _AM
} else {
_L71[_H3] = _K71;
if (_H3 != _K71) {
this._851.data[_K71] = this._851.data[_H3];
this._U41.data[_K71] = this._U41.data[_H3];
this._V41.data[_K71] = this._V41.data[_H3];
this._d51[_K71] = this._d51[_H3];
if (this._c51) {
this._c51[_K71] = this._c51[_H3]
}
if (this._F31.data) {
this._F31.data[_K71] = this._F31.data[_H3]
}
if (this._e51.data) {
this._e51.data[_K71] = this._e51.data[_H3];
}
}
_K71++
}
}
var _N71 = {
_O71: function(_601) {
return _601.index < 0
},
_P71: function(_BZ) {
return _BZ._TR < 0 || _BZ._UR < 0
},
_Q71: function(_BZ) {
return _BZ.index < 0
},
_R71: function(_BR) {
return _BR._TR < 0 || _BR._UR < 0
},
_S71: function(_s61) {
return _s61._TR < 0 || _s61._UR < 0 || _s61._F51 < 0
}
};
for (var _eT = 0; _eT < this._7R; _eT++) {
var _601 = this._g51[_eT];
_601.index = _L71[_601.index]
}
if (this._g51) {
this._7R = this._g51._JL(_N71._O71, this._7R)
}
for (var _eT = 0; _eT < this._521; _eT++) {
var _BZ = this._r31[_eT];
_BZ._TR = _L71[_BZ._TR];
_BZ._UR = _L71[_BZ._UR];
}
if (this._r31) {
this._521 = this._r31._JL(_N71._P71, this._521)
}
for (var _eT = 0; _eT < this._w31; _eT++) {
var _BZ = this._u31[_eT];
_BZ.index = _L71[_BZ.index]
}
if (this._u31) {
this._w31 = this._u31._JL(_N71._Q71, this._w31)
}
for (var _eT = 0; _eT < this._8R; _eT++) {
var _BR = this._9R[_eT];
_BR._TR = _L71[_BR._TR];
_BR._UR = _L71[_BR._UR]
}
if (this._9R) {
this._8R = this._9R._JL(_N71._R71, this._8R)
}
for (var _eT = 0; _eT < this._j51; _eT++) {
var _s61 = this._l51[_eT];
_s61._TR = _L71[_s61._TR];
_s61._UR = _L71[_s61._UR];
_s61._F51 = _L71[_s61._F51]
}
if (this._l51) {
this._j51 = this._l51._JL(_N71._S71, this._j51)
}
for (var _d01 = this._n51; _d01; _d01 = _d01._y_()) {
var _g61 = _K71;
var lastIndex = 0;
var _T71 = !1;
for (var _H3 = _d01._E41; _H3 < _d01._F41; _H3++) {
var __9 = _L71[_H3];
if (__9 >= 0) {
_g61 = _qO(_g61, __9);
lastIndex = _sO(lastIndex, __9 + 1)
} else {
_T71 = !0
}
}
if (_g61 < lastIndex) {
_d01._E41 = _g61;
_d01._F41 = lastIndex;
if (_T71) {
if (_d01._G41 & _C41._X41) {
_d01._O41 = !0
}
}
} else {
_d01._E41 = 0;
_d01._F41 = 0;
if (_d01._M41) {
_d01._N41 = !0
}
}
}
this._3Q = _K71;
for (var _d01 = this._n51; _d01;) {
var _ni = _d01._y_();
if (_d01._N41) {
this._y61(_d01);
} else if (_d01._O41) {}
_d01 = _ni
}
},
_v61: function(start, _U71, end) {
if (start == _U71 || _U71 == end) {
return
}
function _L71(_H3) {
if (_H3 < start) {
return _H3
} else if (_H3 < _U71) {
return _H3 + end - _U71
} else if (_H3 < end) {
return _H3 + start - _U71
} else {
return _H3
}
}
this._851.data.rotate(start, _U71, end);
this._U41.data.rotate(start, _U71, end);
this._V41.data.rotate(start, _U71, end);
this._d51.rotate(start, _U71, end);
if (this._c51) {
this._c51.rotate(start, _U71, end)
}
if (this._F31.data) {
this._F31.data.rotate(start, _U71, end)
}
if (this._e51.data) {
this._e51.data.rotate(start, _U71, end)
}
for (var _eT = 0; _eT < this._7R; _eT++) {
var _601 = this._g51[_eT];
_601.index = _L71(_601.index)
}
for (var _eT = 0; _eT < this._521; _eT++) {
var _BZ = this._r31[_eT];
_BZ._TR = _L71(_BZ._TR);
_BZ._UR = _L71(_BZ._UR)
}
for (var _eT = 0; _eT < this._w31; _eT++) {
var _BZ = this._u31[_eT];
_BZ.index = _L71(_BZ.index)
}
for (var _eT = 0; _eT < this._8R; _eT++) {
var _BR = this._9R[_eT];
_BR._TR = _L71(_BR._TR);
_BR._UR = _L71(_BR._UR)
}
for (var _eT = 0; _eT < this._j51; _eT++) {
var _s61 = this._l51[_eT];
_s61._TR = _L71(_s61._TR);
_s61._UR = _L71(_s61._UR);
_s61._F51 = _L71(_s61._F51);
}
for (var _d01 = this._n51; _d01; _d01 = _d01._y_()) {
_d01._E41 = _L71(_d01._E41);
_d01._F41 = _L71(_d01._F41 - 1) + 1
}
},
_331: function(_PO) {
this._351 = 2 * _PO;
this._551 = this._351 * this._351;
this._451 = 1 / this._351
},
_X21: function(_sP) {
this._vZ = _sP;
this._251 = 1 / this._vZ
},
_Y21: function() {
return this._vZ
},
_Z21: function(_IY) {
this._2Z = _IY
},
__21: function() {
return this._2Z
},
_031: function(_131) {
this._p51 = _131
},
_231: function() {
return this._p51
},
_431: function() {
return this._351 / 2
},
_w71: function(_ML) {
return this._351 * _ML._y01
},
_371: function(_ML) {
var _n41 = this._w71(_ML);
return _n41 * _n41
},
_k71: function(_ML) {
return this._vZ * this._371(_ML)
},
_f61: function() {
return _BM * this._351
},
_T41: function() {
var _7c = this._f61();
return this._vZ * _7c * _7c
},
_Z61: function() {
return 1.777777 * this._251 * this._451 * this._451
},
_e31: function() {
return this._851.data
},
_f31: function() {
return this._U41.data
},
_g31: function() {
return this._V41.data
},
_h31: function() {
this._F31.data = this._a61(this._F31.data);
return this._F31.data
},
_i31: function() {
this._e51.data = this._a61(this._e51.data);
return this._e51.data
},
_V21: function() {
return this._751
},
_W21: function(_Ea) {
_9M(this._3Q <= _Ea);
this._751 = _Ea
},
_j31: function() {
return this._d51
},
_V71: function(buffer, _W71, _561) {
_9M((_W71 && _561) || (!_W71 && !_561));
if (!buffer._y51) {}
buffer.data = _W71;
buffer._y51 = _561
},
_k31: function(buffer, _l31) {
this._V71(this._851, buffer, _l31)
},
_m31: function(buffer, _l31) {
this._V71(this._U41, buffer, _l31)
},
_n31: function(buffer, _l31) {
this._V71(this._V41, buffer, _l31)
},
_o31: function(buffer, _l31) {
this._V71(this._F31, buffer, _l31)
},
_p31: function(buffer, _l31) {
this._V71(this._e51, buffer, _l31)
},
_Q11: function(_tR, _pP) {
if (this._7R == 0) {
return
}
var _I61 = 0;
var _J61 = this._7R;
var _U61 = this._g51._LL(_I61, _J61, _Y51(this._451 * _pP._HP._f3, this._451 * _pP._HP._g3),
function(_kb, _W9) {
return _511._z51._C51(_kb, _W9)
});
var _V61 = this._g51._OL(_U61, _J61, _Y51(this._451 * _pP._IP._f3, this._451 * _pP._IP._g3),
function(_kb, _W9) {
return _511._z51._B51(_kb, _W9)
});
for (var _601 = _U61; _601 < _V61; ++_601) {
var _W61 = this._g51[_601];
var _H3 = _W61.index;
var _mv = this._U41.data[_H3];
if (_pP._HP._f3 < _mv._f3 && _mv._f3 < _pP._IP._f3 && _pP._HP._g3 < _mv._g3 && _mv._g3 < _pP._IP._g3) {
if (!_tR._u01(_H3)) {
break
}
}
}
},
_mP: function(_tR, _S11, _T11) {
if (this._7R == 0) {
return
}
var _I61 = 0;
var _J61 = this._7R;
var _U61 = this._g51._LL(_I61, _J61, _Y51(this._451 * _qO(_S11._f3, _T11._f3) - 1, this._451 * _qO(_S11._g3, _T11._g3) - 1),
function(_kb, _W9) {
return _511._z51._C51(_kb, _W9)
});
var _V61 = this._g51._OL(_I61, _J61, _Y51(this._451 * _sO(_S11._f3, _T11._f3) + 1, this._451 * _sO(_S11._g3, _T11._g3) + 1),
function(_kb, _W9) {
return _511._z51._B51(_kb, _W9)
});
var _GP = 1;
var _xb = _ZM._6N(_T11, _S11);
var _ic = _ZN(_xb, _xb);
for (var _601 = _U61; _601 < _V61; ++_601) {
var _W61 = this._g51[_601];
var _H3 = _W61.index;
var _mv = _ZM._6N(_S11, this._U41.data[_H3]);
var _X71 = _ZN(_mv, _xb);
var _UO = _ZN(_mv, _mv);
var _Y71 = _X71 * _X71 - _ic * (_UO - this._551);
if (_Y71 >= 0) {
var _Z71 = _WM(_Y71);
var _V9 = ( - _X71 - _Z71) / _ic;
if (_V9 > _GP) {
continue
}
if (_V9 < 0) {
_V9 = ( - _X71 + _Z71) / _ic;
if (_V9 < 0 || _V9 > _GP) {
continue
}
}
var _C9 = _ZM._Wh(_mv, _ZM._6N(_V9, _xb));
_C9._9N();
var _Mq = _tR._u01(_H3, _ZM._Wh(_S11, _ZM._Vo(_V9, _xb)), _C9, _V9);
_GP = _qO(_GP, _Mq);
if (_GP <= 0) {
break
}
}
}
},
_x31: function() {
var __71 = 0;
for (var _eT = 0; _eT < this._521; _eT++) {
var _BZ = this._r31[_eT];
var _kb = _BZ._TR;
var _W9 = _BZ._UR;
var _C9 = _BZ._vP;
var _xb = _ZM._6N(this._V41.data[_W9], this._V41.data[_kb]);
var _m71 = _ZN(_xb, _C9);
if (_m71 < 0) {
__71 += _m71 * _m71
}
}
return 0.5 * this._T41() * __71
},
_y31: function() {
return this._n51
},
_z31: function() {
return this._m51
},
_A31: function() {
return this._3Q
}
};
function _081(_181, _281) {
return _WM(_181 * _281)
}
function _381(_481, _581) {
return _481 > _581 ? _481: _581
}
function _681() {
this._mY = null;
this._781 = !1;
};
function _881() {
this._0U = null;
this._BZ = null;
this._u11 = null;
this._ni = null
};
function _b21() {
this._981 = new _881();
this._a81 = new _881();
this._b81 = new _mT()
}
_b21._c81 = new _mT();
_b21.prototype = {
_pZ: function(_u21, _TR, _v21, _UR) {
this._r21 = 0;
this._MY = _b21._d81;
this._k21 = _u21 || null;
this._m21 = _v21 || null;
this._e81 = _TR || 0;
this._f81 = _UR || 0;
this._b81._oT = 0;
this._XY = null;
this._YY = null;
this._981._BZ = null;
this._981._u11 = null;
this._981._ni = null;
this._981._0U = null;
this._a81._BZ = null;
this._a81._u11 = null;
this._a81._ni = null;
this._a81._0U = null;
this._q21 = 0;
if (_u21) {
this._S_ = _081(this._k21._S_, this._m21._S_);
this._T_ = _381(this._k21._T_, this._m21._T_)
} else {
this._S_ = 0;
this._T_ = 0
}
this._g81 = 0.0
},
_h81: function() {
return this._b81
},
_i81: function(_j81) {
var _x11 = this._k21._001();
var _y11 = this._m21._001();
var _zW = this._k21._U_();
var _AW = this._m21._U_();
_j81._zT(this._b81, _x11._VN(), _zW._iP, _y11._VN(), _AW._iP)
},
_i21: function() {
return (this._MY & _b21._k81) == _b21._k81
},
_C21: function(_m_) {
if (_m_) {
this._MY |= _b21._d81;
} else {
this._MY &= ~_b21._d81
}
},
_h21: function() {
return (this._MY & _b21._d81) == _b21._d81
},
_y_: function() {
return this._YY
},
_DZ: function() {
return this._k21
},
_K11: function() {
return this._e81
},
_FZ: function() {
return this._m21
},
_M11: function() {
return this._f81
},
_2D: function(_L_) {
this._S_ = _L_
},
_201: function() {
return this._S_
},
_l81: function() {
this._S_ = _081(this._k21._S_, this._m21._S_)
},
__C: function(_M_) {
this._T_ = _M_
},
_301: function() {
return this._T_
},
_m81: function() {
this._T_ = _381(this._k21._T_, this._m21._T_)
},
_n81: function(_h3) {
this._g81 = _h3
},
_o81: function() {
return this._g81
},
_cY: function(_pT, _AT, _CT) {},
___: function() {
this._MY |= _b21._p81
},
_q81: null,
_Ag: function(listener) {
_b21._c81._2N(this._b81);
this._MY |= _b21._d81;
var _r81 = !1;
var _s81 = (this._MY & _b21._k81) == _b21._k81;
var _j21 = this._k21._W_();
var _l21 = this._m21._W_();
var _V_ = _j21 || _l21;
var _x11 = this._k21._001();
var _y11 = this._m21._001();
var _AT = _x11._VN();
var _CT = _y11._VN();
if (_V_) {
var _zW = this._k21._U_();
var _AW = this._m21._U_();
_r81 = _yW(_zW, this._e81, _AW, this._f81, _AT, _CT);
this._b81._oT = 0
} else {
this._cY(this._b81, _AT, _CT);
_r81 = this._b81._oT > 0;
for (var _H3 = 0; _H3 < this._b81._oT; ++_H3) {
var _t81 = this._b81._e3[_H3];
_t81._jT = 0.0;
_t81._kT = 0.0;
var _u81 = _t81.id;
for (var __9 = 0; __9 < _b21._c81._oT; ++__9) {
var _v81 = _b21._c81._e3[__9];
if (_v81.id._Gh() == _u81._Gh()) {
_t81._jT = _v81._jT;
_t81._kT = _v81._kT;
break
}
}
}
if (_r81 != _s81) {
_x11._gD(!0);
_y11._gD(!0)
}
}
if (_r81) {
this._MY |= _b21._k81
} else {
this._MY &= ~_b21._k81
}
if (_s81 == !1 && _r81 == !0 && listener) {
listener._n01(this)
}
if (_s81 == !0 && _r81 == !1 && listener) {
listener._o01(this)
}
if (_V_ == !1 && _r81 && listener) {
listener._p01(this, _b21._c81)
}
}
};
_b21._fZ = 0x0001;
_b21._k81 = 0x0002;
_b21._d81 = 0x0004;
_b21._p81 = 0x0008;
_b21._w81 = 0x0010;
_b21._gZ = 0x0020;
function _x81() {
this.parent.call(this)
}
_x81.prototype = {
_cY: function(_pT, _AT, _CT) {
_fU(_pT, this._k21._U_(), _AT, this._m21._U_(), _CT)
},
_pZ: function(_CZ, _y81, _EZ, _z81) {
this.parent.prototype._pZ.call(this, _CZ, 0, _EZ, 0);
_9M(this._k21._jP() == _gP._wP);
_9M(this._m21._jP() == _gP._wP);
}
};
_x81._EL(_b21);
var _A81 = new _OP();
function _B81() {
this.parent.call(this)
}
_B81.prototype = {
_cY: function(_pT, _AT, _CT) {
var _OR = this._k21._U_();
_OR._fQ(_A81, this._e81);
_oV(_pT, _A81, _AT, this._m21._U_(), _CT)
},
_pZ: function(_CZ, _TR, _EZ, _UR) {
this.parent.prototype._pZ.call(this, _CZ, _TR, _EZ, _UR);
_9M(this._k21._jP() == _gP._zP);
_9M(this._m21._jP() == _gP._wP)
}
};
_B81._EL(_b21);
function _C81() {
this.parent.call(this)
}
_C81.prototype = {
_cY: function(_pT, _AT, _CT) {
var _OR = this._k21._U_();
_OR._fQ(_A81, this._e81);
_pW(_pT, _A81, _AT, this._m21._U_(), _CT)
},
_pZ: function(_CZ, _TR, _EZ, _UR) {
this.parent.prototype._pZ.call(this, _CZ, _TR, _EZ, _UR);
_9M(this._k21._jP() == _gP._zP);
_9M(this._m21._jP() == _gP._yP)
}
};
_C81._pZ = function(_CZ, _TR, _EZ, _UR) {
return new _C81(_CZ, _TR, _EZ, _UR)
};
_C81._EL(_b21);
function _D81() {
this.parent.call(this)
}
_D81.prototype = {
_cY: function(_pT, _AT, _CT) {
_oV(_pT, this._k21._U_(), _AT, this._m21._U_(), _CT)
},
_pZ: function(_CZ, _TR, _EZ, _UR) {
this.parent.prototype._pZ.call(this, _CZ, 0, _EZ, 0);
_9M(this._k21._jP() == _gP._xP);
_9M(this._m21._jP() == _gP._wP)
}
};
_D81._pZ = function(_CZ, _TR, _EZ, _UR) {
return new _D81(_CZ, _EZ)
};
_D81._EL(_b21);
function _E81() {
this.parent.call(this)
}
_E81.prototype = {
_cY: function(_pT, _AT, _CT) {
_pW(_pT, this._k21._U_(), _AT, this._m21._U_(), _CT)
},
_pZ: function(_CZ, _TR, _EZ, _UR) {
this.parent.prototype._pZ.call(this, _CZ, 0, _EZ, 0);
_9M(this._k21._jP() == _gP._xP);
_9M(this._m21._jP() == _gP._yP)
}
};
_E81._pZ = function(_CZ, _TR, _EZ, _UR) {
return new _E81(_CZ, _EZ)
};
_E81._EL(_b21);
function _F81() {
this.parent.call(this);
}
_F81.prototype = {
_cY: function(_pT, _AT, _CT) {
_jU(_pT, this._k21._U_(), _AT, this._m21._U_(), _CT)
},
_pZ: function(_CZ, _TR, _EZ, _UR) {
this.parent.prototype._pZ.call(this, _CZ, 0, _EZ, 0);
_9M(this._k21._jP() == _gP._yP);
_9M(this._m21._jP() == _gP._wP)
}
};
_F81._pZ = function(_CZ, _TR, _EZ, _UR) {
return new _F81(_CZ, _EZ)
};
_F81._EL(_b21);
function _G81() {
this.parent.call(this)
}
_G81.prototype = {
_cY: function(_pT, _AT, _CT) {
_TU(_pT, this._k21._U_(), _AT, this._m21._U_(), _CT)
},
_pZ: function(_CZ, _TR, _EZ, _UR) {
this.parent.prototype._pZ.call(this, _CZ, 0, _EZ, 0);
_9M(this._k21._jP() == _gP._yP);
_9M(this._m21._jP() == _gP._yP)
}
};
_G81._pZ = function(_CZ, _TR, _EZ, _UR) {
return new _G81(_CZ, _EZ)
};
_G81._EL(_b21);
_b21._H81 = function(_mY, _I81, _J81) {
_9M(0 <= _I81 && _I81 < _gP._AP);
_9M(0 <= _J81 && _J81 < _gP._AP);
if (!_b21._K81[_I81]) _b21._K81[_I81] = [];
_b21._K81[_I81][_J81] = new _681();
_b21._K81[_I81][_J81]._mY = _mY;
_b21._K81[_I81][_J81]._781 = !0;
if (_I81 != _J81) {
if (!_b21._K81[_J81]) _b21._K81[_J81] = [];
_b21._K81[_J81][_I81] = new _681();
_b21._K81[_J81][_I81]._mY = _mY;
_b21._K81[_J81][_I81]._781 = !1;
}
_mY._L81 = [];
_mY._M81 = 2
};
_b21._N81 = function() {
_b21._H81(_x81, _gP._wP, _gP._wP);
_b21._H81(_F81, _gP._yP, _gP._wP);
_b21._H81(_G81, _gP._yP, _gP._yP);
_b21._H81(_D81, _gP._xP, _gP._wP);
_b21._H81(_E81, _gP._xP, _gP._yP);
_b21._H81(_B81, _gP._zP, _gP._wP);
_b21._H81(_C81, _gP._zP, _gP._yP)
};
_b21._O81 = function(_mY) {
var _BZ;
if (_BZ = _mY._L81.pop()) return _BZ;
for (var _H3 = 0; _H3 < _mY._M81 - 1; ++_H3) _mY._L81.push(new _mY()); {
_mY._M81 += 32
}
return new _mY()
};
_b21._pZ = function(_CZ, _TR, _EZ, _UR) {
if (_b21._P81 == !1) {
_b21._N81();
_b21._P81 = !0
}
var _I81 = _CZ._jP();
var _J81 = _EZ._jP();
_9M(0 <= _I81 && _I81 < _gP._AP);
_9M(0 <= _J81 && _J81 < _gP._AP);
var _mY = _b21._K81[_I81] ? _b21._K81[_I81][_J81] ? _b21._K81[_I81][_J81]._mY: null: null;
if (_mY) {
var _BZ = _b21._O81(_mY);
if (_b21._K81[_I81][_J81]._781) _BZ._pZ(_CZ, _TR, _EZ, _UR);
else _BZ._pZ(_EZ, _UR, _CZ, _TR);
return _BZ
}
return null
};
_b21._GZ = function(_BZ) {
_9M(_b21._P81 == !0);
var _CZ = _BZ._k21;
var _EZ = _BZ._m21;
if (_BZ._b81._oT > 0 && _CZ._W_() == !1 && _EZ._W_() == !1) {
_CZ._001()._gD(!0);
_EZ._001()._gD(!0)
}
var _cT = _CZ._jP();
var _dT = _EZ._jP();
_9M(0 <= _cT && _dT < _gP._AP);
_9M(0 <= _cT && _dT < _gP._AP);
_b21._K81[_cT][_dT]._mY._L81.push(_BZ)
};
_b21._K81 = [];
_b21._P81 = !1;
var _Q81 = new _f01();
var _R81 = new _m01();
function _O01() {
this._sZ = new _3R();
this._WY = null;
this._521 = 0;
this._f11 = _Q81;
this._h11 = _R81
}
_O01.prototype = {
_AR: function(_S81, _T81) {
var _WR = _S81;
var _XR = _T81;
var _CZ = _WR._TC;
var _EZ = _XR._TC;
var _TR = _WR._nP;
var _UR = _XR._nP;
var _x11 = _CZ._001();
var _y11 = _EZ._001();
if (_x11 == _y11) {
return
}
var _gQ = _y11._x_();
while (_gQ) {
if (_gQ._0U == _x11) {
var _u21 = _gQ._BZ._DZ();
var _v21 = _gQ._BZ._FZ();
var _wX = _gQ._BZ._K11();
var _xX = _gQ._BZ._M11();
if (_u21 == _CZ && _v21 == _EZ && _wX == _TR && _xX == _UR) {
return
}
if (_u21 == _EZ && _v21 == _CZ && _wX == _UR && _xX == _TR) {
return
}
}
_gQ = _gQ._ni
}
if (_y11._C_(_x11) == !1) {
return
}
if (this._f11 && this._f11._C_(_CZ, _EZ) == !1) {
return
}
var _I3 = _b21._pZ(_CZ, _TR, _EZ, _UR);
if (_I3 == null) {
return
}
_CZ = _I3._DZ();
_EZ = _I3._FZ();
_TR = _I3._K11();
_UR = _I3._M11();
_x11 = _CZ._001();
_y11 = _EZ._001();
_I3._XY = null;
_I3._YY = this._WY;
if (this._WY != null) {
this._WY._XY = _I3
}
this._WY = _I3;
_I3._981._BZ = _I3;
_I3._981._0U = _y11;
_I3._981._u11 = null;
_I3._981._ni = _x11._WY;
if (_x11._WY != null) {
_x11._WY._u11 = _I3._981
}
_x11._WY = _I3._981;
_I3._a81._BZ = _I3;
_I3._a81._0U = _x11;
_I3._a81._u11 = null;
_I3._a81._ni = _y11._WY;
if (_y11._WY != null) {
_y11._WY._u11 = _I3._a81
}
_y11._WY = _I3._a81;
if (_CZ._W_() == !1 && _EZ._W_() == !1) {
_x11._gD(!0);
_y11._gD(!0)
}++this._521
},
_B11: function() {
this._sZ._sR(this)
},
_GZ: function(_I3) {
var _CZ = _I3._DZ();
var _EZ = _I3._FZ();
var _x11 = _CZ._001();
var _y11 = _EZ._001();
if (this._h11 && _I3._i21()) {
this._h11._o01(_I3)
}
if (_I3._XY) {
_I3._XY._YY = _I3._YY
}
if (_I3._YY) {
_I3._YY._XY = _I3._XY
}
if (_I3 == this._WY) {
this._WY = _I3._YY
}
if (_I3._981._u11) {
_I3._981._u11._ni = _I3._981._ni
}
if (_I3._981._ni) {
_I3._981._ni._u11 = _I3._981._u11
}
if (_I3._981 == _x11._WY) {
_x11._WY = _I3._981._ni
}
if (_I3._a81._u11) {
_I3._a81._u11._ni = _I3._a81._ni
}
if (_I3._a81._ni) {
_I3._a81._ni._u11 = _I3._a81._u11
}
if (_I3._a81 == _y11._WY) {
_y11._WY = _I3._a81._ni
}
_b21._GZ(_I3); --this._521
},
_3W: function() {
var _I3 = this._WY;
while (_I3) {
var _CZ = _I3._DZ();
var _EZ = _I3._FZ();
var _TR = _I3._K11();
var _UR = _I3._M11();
var _x11 = _CZ._001();
var _y11 = _EZ._001();
if (_I3._MY & _b21._p81) {
if (_y11._C_(_x11) == !1) {
var _U81 = _I3;
_I3 = _U81._y_();
this._GZ(_U81);
continue
}
if (this._f11 && this._f11._C_(_CZ, _EZ) == !1) {
var _U81 = _I3;
_I3 = _U81._y_();
this._GZ(_U81);
continue
}
_I3._MY &= ~_b21._p81
}
var _y21 = _x11._q_() && _x11._hP != _xY._yY;
var _z21 = _y11._q_() && _y11._hP != _xY._yY;
if (_y21 == !1 && _z21 == !1) {
_I3 = _I3._y_();
continue
}
var _ZQ = _CZ._k_[_TR]._eR;
var __Q = _EZ._k_[_UR]._eR;
var _V81 = this._sZ._nR(_ZQ, __Q);
if (_V81 == !1) {
var _U81 = _I3;
_I3 = _U81._y_();
this._GZ(_U81);
continue
}
_I3._Ag(this._h11);
_I3 = _I3._y_()
}
}
};
function _W81() {
this._8T = new _ZM();
this._9T = new _ZM();
this._jT = 0;
this._kT = 0;
this._X81 = 0;
this._Y81 = 0;
this._Z81 = 0
}
function __81() {
this._091 = new Array(_fM);
this._nT = new _ZM();
this._iT = new _ZM();
this._TR = 0;
this._UR = 0;
this._191 = 0,
this._291 = 0;
this._391 = new _ZM(),
this._491 = new _ZM();
this._591 = 0,
this._691 = 0;
this.type = 0;
this._BT = 0,
this._DT = 0;
this._oT = 0
};
function _791() {
this._e3 = new Array(_fM);
for (var _H3 = 0; _H3 < this._e3.length; ++_H3) this._e3[_H3] = new _W81();
this._vP = new _ZM();
this._X81 = new _jN();
this._891 = new _jN();
this._TR = 0;
this._UR = 0;
this._191 = 0,
this._291 = 0;
this._591 = 0,
this._691 = 0;
this._L_ = 0;
this._M_ = 0;
this._991 = 0;
this._oT = 0;
this._a91 = 0
}
function _b91() {
this._vP = new _ZM();
this._lT = new _ZM();
this._nU = 0
}
_b91.prototype = {
_zT: function(_k41, _AT, _CT, index) {
_9M(_k41._oT > 0);
switch (_k41.type) {
case _mT._qT:
{
var _ET = (_AT._fu._I3 * _k41._iT._f3 - _AT._fu._9q * _k41._iT._g3) + _AT._mv._f3;
var _FT = (_AT._fu._9q * _k41._iT._f3 + _AT._fu._I3 * _k41._iT._g3) + _AT._mv._g3;
var _GT = (_CT._fu._I3 * _k41._091[0]._f3 - _CT._fu._9q * _k41._091[0]._g3) + _CT._mv._f3;
var _HT = (_CT._fu._9q * _k41._091[0]._f3 + _CT._fu._I3 * _k41._091[0]._g3) + _CT._mv._g3;
this._lT._f3 = 0.5 * (_ET + _GT);
this._lT._g3 = 0.5 * (_FT + _HT);
this._vP._f3 = _GT - _ET;
this._vP._g3 = _HT - _FT;
var _c91 = this._vP._f3;
var _d91 = this._vP._g3;
this._vP._9N();
this._nU = (_c91 * this._vP._f3 + _d91 * this._vP._g3) - _k41._BT - _k41._DT
}
break;
case _mT._rT:
{
this._vP._f3 = _AT._fu._I3 * _k41._nT._f3 - _AT._fu._9q * _k41._nT._g3;
this._vP._g3 = _AT._fu._9q * _k41._nT._f3 + _AT._fu._I3 * _k41._nT._g3;
var _OT = (_AT._fu._I3 * _k41._iT._f3 - _AT._fu._9q * _k41._iT._g3) + _AT._mv._f3;
var _PT = (_AT._fu._9q * _k41._iT._f3 + _AT._fu._I3 * _k41._iT._g3) + _AT._mv._g3;
var _QT = (_CT._fu._I3 * _k41._091[index]._f3 - _CT._fu._9q * _k41._091[index]._g3) + _CT._mv._f3;
var _RT = (_CT._fu._9q * _k41._091[index]._f3 + _CT._fu._I3 * _k41._091[index]._g3) + _CT._mv._g3;
this._nU = ((_QT - _OT) * this._vP._f3 + (_RT - _PT) * this._vP._g3) - _k41._BT - _k41._DT;
this._lT._f3 = _QT;
this._lT._g3 = _RT
}
break;
case _mT._sT:
{
this._vP._f3 = _CT._fu._I3 * _k41._nT._f3 - _CT._fu._9q * _k41._nT._g3;
this._vP._g3 = _CT._fu._9q * _k41._nT._f3 + _CT._fu._I3 * _k41._nT._g3;
var _OT = (_CT._fu._I3 * _k41._iT._f3 - _CT._fu._9q * _k41._iT._g3) + _CT._mv._f3;
var _PT = (_CT._fu._9q * _k41._iT._f3 + _CT._fu._I3 * _k41._iT._g3) + _CT._mv._g3;
var _QT = (_AT._fu._I3 * _k41._091[index]._f3 - _AT._fu._9q * _k41._091[index]._g3) + _AT._mv._f3;
var _RT = (_AT._fu._9q * _k41._091[index]._f3 + _AT._fu._I3 * _k41._091[index]._g3) + _AT._mv._g3;
this._nU = ((_QT - _OT) * this._vP._f3 + (_RT - _PT) * this._vP._g3) - _k41._BT - _k41._DT;
this._lT._f3 = _QT;
this._lT._g3 = _RT;
this._vP._f3 = -this._vP._f3;
this._vP._g3 = -this._vP._g3
}
break
}
}
};
function _e91() {
this._ML = new _w01();
this._f91 = null;
this._Ea = 0;
this._G01 = null;
this._H01 = null
}
function _g91() {
this._h91 = [];
this._i91 = [];
}
_g91._j91 = new _NN();
_g91._k91 = new _NN();
_g91._l91 = new _b91();
_g91.prototype = {
_KE: function(_kZ) {
this._h71 = _kZ._ML;
this._3Q = _kZ._Ea;
this._h91.length = this._3Q;
this._i91.length = this._3Q;
this._m91 = _kZ._G01;
this._n91 = _kZ._H01;
this._o91 = _kZ._f91;
for (var _H3 = 0; _H3 < this._3Q; ++_H3) {
var _BZ = this._o91[_H3];
var _CZ = _BZ._k21;
var _EZ = _BZ._m21;
var _zW = _CZ._U_();
var _AW = _EZ._U_();
var _BT = _zW._iP;
var _DT = _AW._iP;
var _x11 = _CZ._001();
var _y11 = _EZ._001();
var _pT = _BZ._h81();
var _oT = _pT._oT;
_9M(_oT > 0);
var _p91 = this._i91[_H3] || new _791();
_p91._L_ = _BZ._S_;
_p91._M_ = _BZ._T_;
_p91._991 = _BZ._g81;
_p91._TR = _x11._LY;
_p91._UR = _y11._LY;
_p91._191 = _x11._8Z;
_p91._291 = _y11._8Z;
_p91._591 = _x11._aZ;
_p91._691 = _y11._aZ;
_p91._a91 = _H3;
_p91._oT = _oT;
_p91._891.__M();
_p91._X81.__M();
this._i91[_H3] = _p91;
var _k41 = this._h91[_H3] || new __81();
_k41._TR = _x11._LY;
_k41._UR = _y11._LY;
_k41._191 = _x11._8Z;
_k41._291 = _y11._8Z;
_k41._391._f3 = _x11._UY._QN._f3;
_k41._391._g3 = _x11._UY._QN._g3;
_k41._491._f3 = _y11._UY._QN._f3;
_k41._491._g3 = _y11._UY._QN._g3;
_k41._591 = _x11._aZ;
_k41._691 = _y11._aZ;
_k41._nT._f3 = _pT._nT._f3;
_k41._nT._g3 = _pT._nT._g3;
_k41._iT._f3 = _pT._iT._f3;
_k41._iT._g3 = _pT._iT._g3;
_k41._oT = _oT;
_k41._BT = _BT;
_k41._DT = _DT;
_k41.type = _pT.type;
this._h91[_H3] = _k41;
for (var __9 = 0; __9 < _oT; ++__9) {
var _mV = _pT._e3[__9];
var _q91 = _p91._e3[__9];
if (this._h71._C01) {
_q91._jT = this._h71._z01 * _mV._jT;
_q91._kT = this._h71._z01 * _mV._kT
} else {
_q91._jT = 0.0;
_q91._kT = 0.0
}
_q91._8T.__M();
_q91._9T.__M();
_q91._X81 = 0.0;
_q91._Y81 = 0.0;
_q91._Z81 = 0.0;
_k41._091[__9] = _mV._iT
}
}
},
_r91: function() {
for (var _H3 = 0; _H3 < this._3Q; ++_H3) {
var _p91 = this._i91[_H3];
var _k41 = this._h91[_H3];
var _BT = _k41._BT;
var _DT = _k41._DT;
var _pT = this._o91[_p91._a91]._h81();
var _TR = _p91._TR;
var _UR = _p91._UR;
var _s91 = _p91._191;
var _t91 = _p91._291;
var _wX = _p91._591;
var _xX = _p91._691;
var _391 = _k41._391;
var _491 = _k41._491;
var _J11 = this._m91[_TR]._I3;
var _u91 = this._m91[_TR]._kb;
var _v91 = this._n91[_TR]._xb;
var _5S = this._n91[_TR]._J3;
var _L11 = this._m91[_UR]._I3;
var _w91 = this._m91[_UR]._kb;
var _x91 = this._n91[_UR]._xb;
var _6S = this._n91[_UR]._J3;
_9M(_pT._oT > 0);
_g91._j91._fu._gi(_u91);
_g91._k91._fu._gi(_w91);
_g91._j91._mv._f3 = _J11._f3 - (_g91._j91._fu._I3 * _391._f3 - _g91._j91._fu._9q * _391._g3);
_g91._j91._mv._g3 = _J11._g3 - (_g91._j91._fu._9q * _391._f3 + _g91._j91._fu._I3 * _391._g3);
_g91._k91._mv._f3 = _L11._f3 - (_g91._k91._fu._I3 * _491._f3 - _g91._k91._fu._9q * _491._g3);
_g91._k91._mv._g3 = _L11._g3 - (_g91._k91._fu._9q * _491._f3 + _g91._k91._fu._I3 * _491._g3);
var _j81 = new _xT();
_j81._zT(_pT, _g91._j91, _BT, _g91._k91, _DT);
_p91._vP._f3 = _j81._vP._f3;
_p91._vP._g3 = _j81._vP._g3;
var _oT = _p91._oT;
for (var __9 = 0; __9 < _oT; ++__9) {
var _q91 = _p91._e3[__9];
_q91._8T._f3 = _j81._e3[__9]._f3 - _J11._f3;
_q91._8T._g3 = _j81._e3[__9]._g3 - _J11._g3;
_q91._9T._f3 = _j81._e3[__9]._f3 - _L11._f3;
_q91._9T._g3 = _j81._e3[__9]._g3 - _L11._g3;
var _y91 = _q91._8T._f3 * _p91._vP._g3 - _q91._8T._g3 * _p91._vP._f3;
var _z91 = _q91._9T._f3 * _p91._vP._g3 - _q91._9T._g3 * _p91._vP._f3;
var _A91 = _s91 + _t91 + _wX * _y91 * _y91 + _xX * _z91 * _z91;
_q91._X81 = _A91 > 0.0 ? 1.0 / _A91: 0.0;
var _bV = 1.0 * _p91._vP._g3;
var _cV = -1.0 * _p91._vP._f3;
var _B91 = _q91._8T._f3 * _cV - _q91._8T._g3 * _bV;
var _C91 = _q91._9T._f3 * _cV - _q91._9T._g3 * _bV;
var _D91 = _s91 + _t91 + _wX * _B91 * _B91 + _xX * _C91 * _C91;
_q91._Y81 = _D91 > 0.0 ? 1.0 / _D91: 0.0;
_q91._Z81 = 0.0;
var _E91 = _p91._vP._f3 * (((_x91._f3 + ( - _6S * _q91._9T._g3)) - _v91._f3) - ( - _5S * _q91._8T._g3)) + _p91._vP._g3 * (((_x91._g3 + (_6S * _q91._9T._f3)) - _v91._g3) - (_5S * _q91._8T._f3));
if (_E91 < -_oM) {
_q91._Z81 = -_p91._M_ * _E91
}
}
if (_p91._oT == 2) {
var _F91 = _p91._e3[0];
var _G91 = _p91._e3[1];
var _H91 = _F91._8T._f3 * _p91._vP._g3 - _F91._8T._g3 * _p91._vP._f3;
var _I91 = _F91._9T._f3 * _p91._vP._g3 - _F91._9T._g3 * _p91._vP._f3;
var _J91 = _G91._8T._f3 * _p91._vP._g3 - _G91._8T._g3 * _p91._vP._f3;
var _K91 = _G91._9T._f3 * _p91._vP._g3 - _G91._9T._g3 * _p91._vP._f3;
var _L91 = _s91 + _t91 + _wX * _H91 * _H91 + _xX * _I91 * _I91;
var _M91 = _s91 + _t91 + _wX * _J91 * _J91 + _xX * _K91 * _K91;
var _N91 = _s91 + _t91 + _wX * _H91 * _J91 + _xX * _I91 * _K91;
var _O91 = 1000.0;
if (_L91 * _L91 < _O91 * (_L91 * _M91 - _N91 * _N91)) {
_p91._891._yF._f3 = _L91;
_p91._891._yF._g3 = _N91;
_p91._891._mN._f3 = _N91;
_p91._891._mN._g3 = _M91;
_p91._X81._2N(_p91._891._oN())
} else {
_p91._oT = 1
}
}
}
},
_P91: function() {
for (var _H3 = 0; _H3 < this._3Q; ++_H3) {
var _p91 = this._i91[_H3];
var _TR = _p91._TR;
var _UR = _p91._UR;
var _s91 = _p91._191;
var _wX = _p91._591;
var _t91 = _p91._291;
var _xX = _p91._691;
var _oT = _p91._oT;
var _v91 = this._n91[_TR]._xb;
var _5S = this._n91[_TR]._J3;
var _x91 = this._n91[_UR]._xb;
var _6S = this._n91[_UR]._J3;
var _vP = _p91._vP;
var _bV = 1.0 * _vP._g3;
var _cV = -1.0 * _vP._f3;
for (var __9 = 0; __9 < _oT; ++__9) {
var _q91 = _p91._e3[__9];
var _AV = (_q91._jT * _vP._f3) + (_q91._kT * _bV);
var _BV = (_q91._jT * _vP._g3) + (_q91._kT * _cV);
_5S -= _wX * (_q91._8T._f3 * _BV - _q91._8T._g3 * _AV);
_v91._f3 -= _s91 * _AV;
_v91._g3 -= _s91 * _BV;
_6S += _xX * (_q91._9T._f3 * _BV - _q91._9T._g3 * _AV);
_x91._f3 += _t91 * _AV;
_x91._g3 += _t91 * _BV
}
this._n91[_TR]._J3 = _5S;
this._n91[_UR]._J3 = _6S
}
},
_Q91: function() {
for (var _H3 = 0; _H3 < this._3Q; ++_H3) {
var _p91 = this._i91[_H3];
var _TR = _p91._TR;
var _UR = _p91._UR;
var _s91 = _p91._191;
var _wX = _p91._591;
var _t91 = _p91._291;
var _xX = _p91._691;
var _oT = _p91._oT;
var _v91 = this._n91[_TR]._xb;
var _5S = this._n91[_TR]._J3;
var _x91 = this._n91[_UR]._xb;
var _6S = this._n91[_UR]._J3;
var _vP = _p91._vP;
var _bV = 1.0 * _vP._g3;
var _cV = -1.0 * _vP._f3;
var _L_ = _p91._L_;
_9M(_oT == 1 || _oT == 2);
for (var __9 = 0; __9 < _oT; ++__9) {
var _q91 = _p91._e3[__9];
var _R91 = _x91._f3 + ( - _6S * _q91._9T._g3) - _v91._f3 - ( - _5S * _q91._8T._g3);
var _S91 = _x91._g3 + (_6S * _q91._9T._f3) - _v91._g3 - (_5S * _q91._8T._f3);
var _T91 = (_R91 * _bV + _S91 * _cV) - _p91._991;
var _U91 = _q91._Y81 * ( - _T91);
var _V91 = _L_ * _q91._jT;
var _W91 = _uO(_q91._kT + _U91, -_V91, _V91);
_U91 = _W91 - _q91._kT;
_q91._kT = _W91;
var _AV = _U91 * _bV;
var _BV = _U91 * _cV;
_v91._f3 -= _s91 * _AV;
_v91._g3 -= _s91 * _BV;
_5S -= _wX * (_q91._8T._f3 * _BV - _q91._8T._g3 * _AV);
_x91._f3 += _t91 * _AV;
_x91._g3 += _t91 * _BV;
_6S += _xX * (_q91._9T._f3 * _BV - _q91._9T._g3 * _AV)
}
if (_p91._oT == 1) {
_q91 = _p91._e3[0];
_R91 = _x91._f3 + ( - _6S * _q91._9T._g3) - _v91._f3 - ( - _5S * _q91._8T._g3);
_S91 = _x91._g3 + (_6S * _q91._9T._f3) - _v91._g3 - (_5S * _q91._8T._f3);
var _m71 = _R91 * _vP._f3 + _S91 * _vP._g3;
var _U91 = -_q91._X81 * (_m71 - _q91._Z81);
var _W91 = _sO(_q91._jT + _U91, 0.0);
_U91 = _W91 - _q91._jT;
_q91._jT = _W91;
_AV = _U91 * _vP._f3;
_BV = _U91 * _vP._g3;
_v91._f3 -= _s91 * _AV;
_v91._g3 -= _s91 * _BV;
_5S -= _wX * (_q91._8T._f3 * _BV - _q91._8T._g3 * _AV);
_x91._f3 += _t91 * _AV;
_x91._g3 += _t91 * _BV;
_6S += _xX * (_q91._9T._f3 * _BV - _q91._9T._g3 * _AV)
} else {
var _X91 = _p91._e3[0];
var _Y91 = _p91._e3[1];
var _841 = _X91._jT;
var _941 = _Y91._jT;
_9M(_841 >= 0.0 && _941 >= 0.0);
var _Z91 = _x91._f3 + ( - _6S * _X91._9T._g3) - _v91._f3 - ( - _5S * _X91._8T._g3);
var __91 = _x91._g3 + (_6S * _X91._9T._f3) - _v91._g3 - (_5S * _X91._8T._f3);
var _0a1 = _x91._f3 + ( - _6S * _Y91._9T._g3) - _v91._f3 - ( - _5S * _Y91._8T._g3);
var _1a1 = _x91._g3 + (_6S * _Y91._9T._f3) - _v91._g3 - (_5S * _Y91._8T._f3);
var _2a1 = _Z91 * _vP._f3 + __91 * _vP._g3;
var _3a1 = _0a1 * _vP._f3 + _1a1 * _vP._g3;
var _a41 = _2a1 - _X91._Z81;
var _b41 = _3a1 - _Y91._Z81;
_a41 -= _p91._891._yF._f3 * _841 + _p91._891._mN._f3 * _941;
_b41 -= _p91._891._yF._g3 * _841 + _p91._891._mN._g3 * _941;
for (;;) {
var _0a = -(_p91._X81._yF._f3 * _a41 + _p91._X81._mN._f3 * _b41);
var _4a1 = -(_p91._X81._yF._g3 * _a41 + _p91._X81._mN._g3 * _b41);
if (_0a >= 0.0 && _4a1 >= 0.0) {
var _Yb = _0a - _841;
var _Zb = _4a1 - _941;
var _5a1 = _Yb * _vP._f3;
var _6a1 = _Yb * _vP._g3;
var _7a1 = _Zb * _vP._f3;
var _8a1 = _Zb * _vP._g3;
_v91._f3 -= _s91 * (_5a1 + _7a1);
_v91._g3 -= _s91 * (_6a1 + _8a1);
_5S -= _wX * ((_X91._8T._f3 * _6a1 - _X91._8T._g3 * _5a1) + (_Y91._8T._f3 * _8a1 - _Y91._8T._g3 * _7a1));
_x91._f3 += _t91 * (_5a1 + _7a1);
_x91._g3 += _t91 * (_6a1 + _8a1);
_6S += _xX * ((_X91._9T._f3 * _6a1 - _X91._9T._g3 * _5a1) + (_Y91._9T._f3 * _8a1 - _Y91._9T._g3 * _7a1));
_X91._jT = _0a;
_Y91._jT = _4a1;
break
}
_0a = -_X91._X81 * _a41;
_4a1 = 0.0;
_2a1 = 0.0;
_3a1 = _p91._891._yF._g3 * _0a + _b41;
if (_0a >= 0.0 && _3a1 >= 0.0) {
_Yb = _0a - _841;
_Zb = _4a1 - _941;
_5a1 = _Yb * _vP._f3;
_6a1 = _Yb * _vP._g3;
_7a1 = _Zb * _vP._f3;
_8a1 = _Zb * _vP._g3;
_v91._f3 -= _s91 * (_5a1 + _7a1);
_v91._g3 -= _s91 * (_6a1 + _8a1);
_5S -= _wX * ((_X91._8T._f3 * _6a1 - _X91._8T._g3 * _5a1) + (_Y91._8T._f3 * _8a1 - _Y91._8T._g3 * _7a1));
_x91._f3 += _t91 * (_5a1 + _7a1);
_x91._g3 += _t91 * (_6a1 + _8a1);
_6S += _xX * ((_X91._9T._f3 * _6a1 - _X91._9T._g3 * _5a1) + (_Y91._9T._f3 * _8a1 - _Y91._9T._g3 * _7a1));
_X91._jT = _0a;
_Y91._jT = _4a1;
break
}
_0a = 0.0;
_4a1 = -_Y91._X81 * _b41;
_2a1 = _p91._891._mN._f3 * _4a1 + _a41;
_3a1 = 0.0;
if (_4a1 >= 0.0 && _2a1 >= 0.0) {
_Yb = _0a - _841;
_Zb = _4a1 - _941;
_5a1 = _Yb * _vP._f3;
_6a1 = _Yb * _vP._g3;
_7a1 = _Zb * _vP._f3;
_8a1 = _Zb * _vP._g3;
_v91._f3 -= _s91 * (_5a1 + _7a1);
_v91._g3 -= _s91 * (_6a1 + _8a1);
_5S -= _wX * ((_X91._8T._f3 * _6a1 - _X91._8T._g3 * _5a1) + (_Y91._8T._f3 * _8a1 - _Y91._8T._g3 * _7a1));
_x91._f3 += _t91 * (_5a1 + _7a1);
_x91._g3 += _t91 * (_6a1 + _8a1);
_6S += _xX * ((_X91._9T._f3 * _6a1 - _X91._9T._g3 * _5a1) + (_Y91._9T._f3 * _8a1 - _Y91._9T._g3 * _7a1));
_X91._jT = _0a;
_Y91._jT = _4a1;
break
}
_0a = 0.0;
_4a1 = 0.0;
_2a1 = _a41;
_3a1 = _b41;
if (_2a1 >= 0.0 && _3a1 >= 0.0) {
_Yb = _0a - _841;
_Zb = _4a1 - _941;
_5a1 = _Yb * _vP._f3;
_6a1 = _Yb * _vP._g3;
_7a1 = _Zb * _vP._f3;
_8a1 = _Zb * _vP._g3;
_v91._f3 -= _s91 * (_5a1 + _7a1);
_v91._g3 -= _s91 * (_6a1 + _8a1);
_5S -= _wX * ((_X91._8T._f3 * _6a1 - _X91._8T._g3 * _5a1) + (_Y91._8T._f3 * _8a1 - _Y91._8T._g3 * _7a1));
_x91._f3 += _t91 * (_5a1 + _7a1);
_x91._g3 += _t91 * (_6a1 + _8a1);
_6S += _xX * ((_X91._9T._f3 * _6a1 - _X91._9T._g3 * _5a1) + (_Y91._9T._f3 * _8a1 - _Y91._9T._g3 * _7a1));
_X91._jT = _0a;
_Y91._jT = _4a1;
break
}
break
}
}
this._n91[_TR]._J3 = _5S;
this._n91[_UR]._J3 = _6S
}
},
_9a1: function() {
for (var _H3 = 0; _H3 < this._3Q; ++_H3) {
var _p91 = this._i91[_H3];
var _pT = this._o91[_p91._a91]._h81();
for (var __9 = 0; __9 < _p91._oT; ++__9) {
_pT._e3[__9]._jT = _p91._e3[__9]._jT;
_pT._e3[__9]._kT = _p91._e3[__9]._kT
}
}
},
_aa1: function() {
var _ba1 = 0.0;
for (var _H3 = 0; _H3 < this._3Q; ++_H3) {
var _k41 = this._h91[_H3];
var _TR = _k41._TR;
var _UR = _k41._UR;
var _391 = _k41._391;
var _s91 = _k41._191;
var _wX = _k41._591;
var _491 = _k41._491;
var _t91 = _k41._291;
var _xX = _k41._691;
var _oT = _k41._oT;
var _J11 = this._m91[_TR]._I3;
var _u91 = this._m91[_TR]._kb;
var _L11 = this._m91[_UR]._I3;
var _w91 = this._m91[_UR]._kb;
for (var __9 = 0; __9 < _oT; ++__9) {
_g91._j91._fu._gi(_u91);
_g91._k91._fu._gi(_w91);
_g91._j91._mv._f3 = _J11._f3 - (_g91._j91._fu._I3 * _391._f3 - _g91._j91._fu._9q * _391._g3);
_g91._j91._mv._g3 = _J11._g3 - (_g91._j91._fu._9q * _391._f3 + _g91._j91._fu._I3 * _391._g3);
_g91._k91._mv._f3 = _L11._f3 - (_g91._k91._fu._I3 * _491._f3 - _g91._k91._fu._9q * _491._g3);
_g91._k91._mv._g3 = _L11._g3 - (_g91._k91._fu._9q * _491._f3 + _g91._k91._fu._I3 * _491._g3);
_g91._l91._zT(_k41, _g91._j91, _g91._k91, __9);
var _vP = _g91._l91._vP;
var _lT = _g91._l91._lT;
var _nU = _g91._l91._nU;
var _ca1 = _lT._f3 - _J11._f3;
var _da1 = _lT._g3 - _J11._g3;
var _ea1 = _lT._f3 - _L11._f3;
var _fa1 = _lT._g3 - _L11._g3;
_ba1 = _qO(_ba1, _nU);
var _jO = _uO(_vM * (_nU + _jM), -_pM, 0.0);
var _y91 = _ca1 * _vP._g3 - _da1 * _vP._f3;
var _z91 = _ea1 * _vP._g3 - _fa1 * _vP._f3;
var _891 = _s91 + _t91 + _wX * _y91 * _y91 + _xX * _z91 * _z91;
var _XZ = _891 > 0.0 ? -_jO / _891: 0.0;
var _AV = _XZ * _vP._f3;
var _BV = _XZ * _vP._g3;
_J11._f3 -= _s91 * _AV;
_J11._g3 -= _s91 * _BV;
_u91 -= _wX * (_ca1 * _BV - _da1 * _AV);
_L11._f3 += _t91 * _AV;
_L11._g3 += _t91 * _BV;
_w91 += _xX * (_ea1 * _BV - _fa1 * _AV)
}
this._m91[_TR]._kb = _u91;
this._m91[_UR]._kb = _w91;
}
return _ba1 >= -3.0 * _jM
},
_ga1: function(_ha1, _ia1) {
var _ba1 = 0.0;
for (var _H3 = 0; _H3 < this._3Q; ++_H3) {
var _k41 = this._h91[_H3];
var _TR = _k41._TR;
var _UR = _k41._UR;
var _391 = _k41._391;
var _491 = _k41._491;
var _oT = _k41._oT;
var _s91 = 0.0;
var _wX = 0.0;
if (_TR == _ha1 || _TR == _ia1) {
_s91 = _k41._191;
_wX = _k41._591
}
var _t91 = 0.0;
var _xX = 0.0;
if (_UR == _ha1 || _UR == _ia1) {
_t91 = _k41._291;
_xX = _k41._691
}
var _J11 = this._m91[_TR]._I3;
var _u91 = this._m91[_TR]._kb;
var _L11 = this._m91[_UR]._I3;
var _w91 = this._m91[_UR]._kb;
for (var __9 = 0; __9 < _oT; ++__9) {
_g91._j91._fu._gi(_u91);
_g91._k91._fu._gi(_w91);
_g91._j91._mv._2N(_ZM._6N(_J11, _dO(_g91._j91._fu, _391)));
_g91._k91._mv._2N(_ZM._6N(_L11, _dO(_g91._k91._fu, _491)));
_g91._l91._zT(_k41, _g91._j91, _g91._k91, __9);
var _vP = _g91._l91._vP;
var _lT = _g91._l91._lT;
var _nU = _g91._l91._nU;
var _8T = _ZM._6N(_lT, _J11);
var _9T = _ZM._6N(_lT, _L11);
_ba1 = _qO(_ba1, _nU);
var _jO = _uO(_wM * (_nU + _jM), -_pM, 0.0);
var _y91 = __N(_8T, _vP);
var _z91 = __N(_9T, _vP);
var _891 = _s91 + _t91 + _wX * _y91 * _y91 + _xX * _z91 * _z91;
var _XZ = _891 > 0.0 ? -_jO / _891: 0.0;
var _qV = _ZM._Vo(_XZ, _vP);
_J11._6N(_ZM._Vo(_s91, _qV));
_u91 -= _wX * __N(_8T, _qV);
_L11._Wh(_ZM._Vo(_t91, _qV));
_w91 += _xX * __N(_9T, _qV)
}
this._m91[_TR]._kb = _u91;
this._m91[_UR]._kb = _w91
}
return _ba1 >= -1.5 * _jM
}
};
function _311() {
this._p21 = [];
this._o91 = [];
this._ja1 = [];
this._n91 = [];
this._m91 = []
}
var _ka1 = _RL._2M("solve initialization", "solve");
var _la1 = _RL._2M("warm starting", "solve initialization");
var _ma1 = _RL._2M("solve velocities", "solve");
var _na1 = _RL._2M("solve positions", "solve");
_311._oa1 = new _F01();
_311._pa1 = new _e91();
_311._qa1 = new _g91();
_311.prototype = {
_zg: function() {
this._S01 = 0;
this._521 = 0;
this._T01 = 0
},
_zT: function(_ra1, _sa1, _ta1, listener) {
this._ua1 = listener;
this._E21 = _ra1;
this._F21 = _sa1;
this._va1 = _ta1;
this._S01 = 0;
this._521 = 0;
this._T01 = 0;
this._p21.length = _ra1;
this._o91.length = _sa1;
this._ja1.length = _ta1;
this._n91.length = _ra1;
this._m91.length = _ra1
},
_rN: function(_ML, _N01, _DY) {
_ka1.start();
var _K3 = _ML._x01;
for (var _H3 = 0; _H3 < this._S01; ++_H3) {
var _W9 = this._p21[_H3];
this._m91[_H3]._I3._2N(_W9._UY._I3);
var _kb = _W9._UY._kb;
this._n91[_H3]._xb._2N(_W9._ZY);
var _J3 = _W9.__Y;
_W9._UY._RN._2N(_W9._UY._I3);
_W9._UY._TN = _W9._UY._kb;
if (_W9._hP == _xY._6Z) {
this._n91[_H3]._xb._f3 += _K3 * ((_W9._2Z * _N01._f3) + (_W9._8Z * _W9._3Z._f3));
this._n91[_H3]._xb._g3 += _K3 * ((_W9._2Z * _N01._g3) + (_W9._8Z * _W9._3Z._g3));
_J3 += _K3 * _W9._aZ * _W9._4Z;
this._n91[_H3]._xb._f3 *= 1.0 / (1.0 + _K3 * _W9._0Z);
this._n91[_H3]._xb._g3 *= 1.0 / (1.0 + _K3 * _W9._0Z);
_J3 *= 1.0 / (1.0 + _K3 * _W9._1Z)
}
this._m91[_H3]._kb = _kb;
this._n91[_H3]._J3 = _J3
}
_311._oa1._ML = _ML;
_311._oa1._G01 = this._m91;
_311._oa1._H01 = this._n91;
_311._pa1._ML = _ML;
_311._pa1._f91 = this._o91;
_311._pa1._Ea = this._521;
_311._pa1._G01 = this._m91;
_311._pa1._H01 = this._n91;
_311._pa1._wa1 = this._xa1;
_311._qa1._KE(_311._pa1);
_311._qa1._r91();
if (_ML._C01) {
_la1.start();
_311._qa1._P91();
_la1.stop()
}
for (var _H3 = 0; _H3 < this._T01; ++_H3) {
this._ja1[_H3]._ya1(_311._oa1)
}
_ka1.stop();
_ma1.start();
for (var _H3 = 0; _H3 < _ML._A01; ++_H3) {
for (var __9 = 0; __9 < this._T01; ++__9) {
this._ja1[__9]._Q91(_311._oa1)
}
_311._qa1._Q91()
}
_311._qa1._9a1();
_ma1.stop();
_na1.start();
for (var _H3 = 0; _H3 < this._S01; ++_H3) {
var _I3 = this._m91[_H3]._I3;
var _kb = this._m91[_H3]._kb;
var _xb = this._n91[_H3]._xb;
var _J3 = this._n91[_H3]._J3;
var _za1 = _K3 * _xb._f3;
var _Aa1 = _K3 * _xb._g3;
var _Ba1 = _za1 * _za1 + _Aa1 * _Aa1;
if (_Ba1 > _sM) {
var _Ca1 = _rM / _WM(_Ba1);
_xb._f3 *= _Ca1;
_xb._g3 *= _Ca1
}
var _i5 = _K3 * _J3;
if (_i5 * _i5 > _uM) {
var _Ca1 = _tM / _nO(_i5);
_J3 *= _Ca1
}
_I3._f3 += _K3 * _xb._f3;
_I3._g3 += _K3 * _xb._g3;
_kb += _K3 * _J3;
this._m91[_H3]._kb = _kb;
this._n91[_H3]._J3 = _J3
}
var _Da1 = !1;
for (var _H3 = 0; _H3 < _ML._B01; ++_H3) {
var _Ea1 = _311._qa1._aa1();
var _Fa1 = !0;
for (var __9 = 0; __9 < this._T01; ++__9) {
var _Ga1 = this._ja1[__9]._aa1(_311._oa1);
_Fa1 = _Fa1 && _Ga1
}
if (_Ea1 && _Fa1) {
_Da1 = !0;
break
}
}
for (var _H3 = 0; _H3 < this._S01; ++_H3) {
var body = this._p21[_H3];
body._UY._I3._2N(this._m91[_H3]._I3);
body._UY._kb = this._m91[_H3]._kb;
body._ZY._2N(this._n91[_H3]._xb);
body.__Y = this._n91[_H3]._J3;
body._B_()
}
_na1.stop();
this._Ha1(_311._qa1._i91);
if (_DY) {
var _Ia1 = _cM;
var _Ja1 = _yM * _yM;
var _Ka1 = _zM * _zM;
for (var _H3 = 0; _H3 < this._S01; ++_H3) {
var _W9 = this._p21[_H3];
if (_W9._jP() == _xY._yY) {
continue
}
if ((_W9._MY & _xY._PY) == 0 || _W9.__Y * _W9.__Y > _Ka1 || _ZN(_W9._ZY, _W9._ZY) > _Ja1) {
_W9._5Z = 0.0;
_Ia1 = 0.0
} else {
_W9._5Z += _K3;
_Ia1 = _qO(_Ia1, _W9._5Z)
}
}
if (_Ia1 >= _xM && _Da1) {
for (var _H3 = 0; _H3 < this._S01; ++_H3) {
var _W9 = this._p21[_H3];
_W9._gD(!1)
}
}
}
},
_D11: function(_G21, _ha1, _ia1) {
_9M(_ha1 < this._S01);
_9M(_ia1 < this._S01);
for (var _H3 = 0; _H3 < this._S01; ++_H3) {
var _W9 = this._p21[_H3];
this._m91[_H3]._I3._2N(_W9._UY._I3);
this._m91[_H3]._kb = _W9._UY._kb;
this._n91[_H3]._xb._2N(_W9._ZY);
this._n91[_H3]._J3 = _W9.__Y
}
_311._pa1._f91 = this._o91;
_311._pa1._Ea = this._521;
_311._pa1._ML = _G21;
_311._pa1._G01 = this._m91;
_311._pa1._H01 = this._n91;
_311._qa1._KE(_311._pa1);
for (var _H3 = 0; _H3 < _G21._B01; ++_H3) {
var _Ea1 = _311._qa1._ga1(_ha1, _ia1);
if (_Ea1) {
break
}
}
this._p21[_ha1]._UY._RN._2N(this._m91[_ha1]._I3);
this._p21[_ha1]._UY._TN = this._m91[_ha1]._kb;
this._p21[_ia1]._UY._RN._2N(this._m91[_ia1]._I3);
this._p21[_ia1]._UY._TN = this._m91[_ia1]._kb;
_311._qa1._r91();
for (var _H3 = 0; _H3 < _G21._A01; ++_H3) {
_311._qa1._Q91()
}
var _K3 = _G21._x01;
for (var _H3 = 0; _H3 < this._S01; ++_H3) {
var _I3 = this._m91[_H3]._I3;
var _kb = this._m91[_H3]._kb;
var _xb = this._n91[_H3]._xb;
var _J3 = this._n91[_H3]._J3;
var _La1 = _ZM._Vo(_K3, _xb);
if (_ZN(_La1, _La1) > _sM) {
var _Ca1 = _rM / _La1._7N();
_xb._Vo(_Ca1)
}
var _i5 = _K3 * _J3;
if (_i5 * _i5 > _uM) {
var _Ca1 = _tM / _nO(_i5);
_J3 *= _Ca1
}
_I3._Wh(_ZM._Vo(_K3, _xb));
_kb += _K3 * _J3;
this._m91[_H3]._kb = _kb;
this._n91[_H3]._J3 = _J3;
var body = this._p21[_H3];
body._UY._I3._2N(_I3);
body._UY._kb = _kb;
body._ZY._2N(_xb);
body.__Y = _J3;
body._B_()
}
this._Ha1(_311._qa1._i91)
},
_g21: function(body) {
_9M(this._S01 < this._E21);
body._LY = this._S01;
this._p21[this._S01] = body;
if (!this._m91[this._S01]) {
this._m91[this._S01] = new _D01();
this._n91[this._S01] = new _E01()
}++this._S01
},
_n21: function(_BZ) {
_9M(this._521 < this._F21);
this._o91[this._521++] = _BZ;
},
_o21: function(_E_) {
_9M(this._T01 < this._va1);
this._ja1[this._T01++] = _E_
},
_Ha1: function(_Ma1) {
if (this._ua1 == null) {
return
}
for (var _H3 = 0; _H3 < this._521; ++_H3) {
var _I3 = this._o91[_H3];
var _p91 = _Ma1[_H3];
var _XZ = new _j01();
_XZ._Ea = _p91._oT;
for (var __9 = 0; __9 < _p91._oT; ++__9) {
_XZ._k01[__9] = _p91._e3[__9]._jT;
_XZ._l01[__9] = _p91._e3[__9]._kT
}
this._ua1._r01(_I3, _XZ)
}
}
};
function _Na1() {
this._Oa1 = new _ZM();
this._Pa1 = 0;
this._Qa1 = 0
};
function _Ra1() {
this._0U = null;
this._E_ = null;
this._u11 = null;
this._ni = null
};
function _Sa1() {
this.type = _r11._Ta1;
this._dR = null;
this._x11 = null;
this._y11 = null;
this._z11 = !1
};
_Sa1.prototype = {
_fN: function(data, _D21, _Ua1) {
this._x11 = _D21[data['bodyA']];
this._y11 = _D21[data['bodyB']];
this._z11 = data['collideConnected']
}
};
function _r11(_kZ) {
_9M(_kZ._x11 != _kZ._y11);
this._hP = _kZ.type;
this._XY = null;
this._YY = null;
this._v11 = _kZ._x11;
this._t11 = _kZ._y11;
this._Ir = 0;
this._F_ = _kZ._z11;
this._c21 = !1;
this._bZ = _kZ._dR;
this._s11 = new _Ra1();
this._s11._E_ = null;
this._s11._0U = null;
this._s11._u11 = null;
this._s11._ni = null;
this._w11 = new _Ra1();
this._w11._E_ = null;
this._w11._0U = null;
this._w11._u11 = null;
this._w11._ni = null
}
_r11.prototype = {
_jP: function() {
return this._hP
},
_H21: function() {
return this._v11
},
_I21: function() {
return this._t11
},
_J21: function() {},
_K21: function() {},
_Va1: function(_y01) {},
_Wa1: function(_y01) {},
_y_: function() {
return this._YY
},
_mR: function() {
return this._bZ
},
_z_: function(data) {
this._bZ = data
},
_s_: function() {
return this._v11._s_() && this._t11._s_()
},
_Xa1: function() {
return this._F_;
},
_IR: function(_JR) {},
_ya1: function(data) {},
_Q91: function(data) {},
_aa1: function(data) {},
_dN: function(_eN) {
var _xr = _eN || {};
_xr['bodyA'] = null;
_xr['bodyB'] = null;
_xr['type'] = this._hP;
_xr['collideConnected'] = this._F_;
return _xr
}
};
_r11._Ya1 = 0;
_r11._Za1 = 1;
_r11.__a1 = 2;
_r11._0b1 = 3;
_r11._Ta1 = 0;
_r11._1b1 = 1;
_r11._2b1 = 2;
_r11._L21 = 3;
_r11._M21 = 4;
_r11._Q21 = 5;
_r11._3b1 = 6;
_r11._4b1 = 7;
_r11._5b1 = 8;
_r11._6b1 = 9;
_r11._7b1 = 10;
_r11._R21 = 11;
_r11._pZ = function(_kZ) {
var _E_ = null;
switch (_kZ.type) {
case _r11._L21:
_E_ = new _8b1(_kZ);
break;
case _r11._Q21:
_E_ = new _9b1(_kZ);
break;
case _r11._2b1:
_E_ = new _ab1(_kZ);
break;
case _r11._1b1:
_E_ = new _bb1(_kZ);
break;
case _r11._M21:
_E_ = new _cb1(_kZ);
break;
case _r11._3b1:
_E_ = new _db1(_kZ);
break;
case _r11._4b1:
_E_ = new _eb1(_kZ);
break;
case _r11._5b1:
_E_ = new _fb1(_kZ);
break;
case _r11._6b1:
_E_ = new _gb1(_kZ);
break;
case _r11._7b1:
_E_ = new _hb1(_kZ);
break;
case _r11._R21:
_E_ = new _ib1(_kZ);
break;
default:
_9M(!1);
break
}
return _E_
};
_r11._GZ = function(_E_) {};
function _jb1() {
this.parent.call(this);
this.type = _r11._1b1;
this._kb1 = new _ZM();
this._lb1 = new _ZM();
this._mb1 = 0.0;
this._nb1 = 0.0;
this._ob1 = 0.0;
this._pb1 = 0.0;
this._qb1 = 0.0;
this._rb1 = !1;
this._sb1 = !1;
Object.seal(this)
}
_jb1.prototype = {
_zT: function(_w21, _x21, anchor) {
this._x11 = _w21;
this._y11 = _x21;
this._kb1 = this._x11._5_(anchor);
this._lb1 = this._y11._5_(anchor);
this._mb1 = this._y11._KN() - this._x11._KN()
},
_fN: function(data, _D21, _Ua1) {
this.parent.prototype._fN.call(this, data, _D21, _Ua1);
this._kb1._fN(data['localAnchorA']);
this._lb1._fN(data['localAnchorB']);
this._mb1 = data['referenceAngle'];
this._nb1 = data['lowerAngle'];
this._ob1 = data['upperAngle'];
this._pb1 = data['maxMotorTorque'];
this._qb1 = data['motorSpeed'];
this._rb1 = data['enableLimit'];
this._sb1 = data['enableMotor']
}
};
_jb1._EL(_Sa1);
function _bb1(_kZ) {
this.parent.call(this, _kZ);
this._tb1 = _kZ._kb1._u8();
this._ub1 = _kZ._lb1._u8();
this._vb1 = _kZ._mb1;
this._wb1 = new _hN();
this._xb1 = 0.0;
this._yb1 = _kZ._nb1;
this._zb1 = _kZ._ob1;
this._Ab1 = _kZ._pb1;
this._Bb1 = _kZ._qb1;
this._Cb1 = _kZ._rb1;
this._Db1 = _kZ._sb1;
this._Eb1 = _r11._Ya1;
this._e81 = 0;
this._f81 = 0;
this._Fb1 = new _ZM();
this._Gb1 = new _ZM();
this._Hb1 = new _ZM();
this._Ib1 = new _ZM();
this._Jb1 = 0;
this._Kb1 = 0;
this._Lb1 = 0;
this._Mb1 = 0;
this._7Z = new _wN();
this._Nb1 = 0
}
_bb1.prototype = {
_J21: function() {
return this._v11._2_(this._tb1)
},
_K21: function() {
return this._t11._2_(this._ub1)
},
_Ob1: function() {
return this._tb1
},
_Pb1: function() {
return this._ub1
},
_Qb1: function() {
return this._vb1
},
_Rb1: function() {
var _w21 = this._v11;
var _x21 = this._t11;
return _x21._UY._kb - _w21._UY._kb - this._vb1
},
_Sb1: function() {
var _w21 = this._v11;
var _x21 = this._t11;
return _x21.__Y - _w21.__Y
},
_Tb1: function() {
return this._Cb1
},
_Ub1: function(_m_) {
if (_m_ != this._Cb1) {
this._v11._gD(!0);
this._t11._gD(!0);
this._Cb1 = _m_;
this._wb1._Cc = 0.0
}
},
_Vb1: function() {
return this._yb1
},
_Wb1: function() {
return this._zb1
},
_Xb1: function(_Sz, _zQ) {
_9M(_Sz <= _zQ);
if (_Sz != this._yb1 || _zQ != this._zb1) {
this._v11._gD(!0);
this._t11._gD(!0);
this._wb1._Cc = 0.0;
this._yb1 = _Sz;
this._zb1 = _zQ
}
},
_Yb1: function() {
return this._Db1
},
_Zb1: function(_m_) {
this._v11._gD(!0);
this._t11._gD(!0);
this._Db1 = _m_
},
__b1: function(_h3) {
this._v11._gD(!0);
this._t11._gD(!0);
this._Bb1 = _h3
},
_0c1: function() {
return this._Bb1
},
_1c1: function(_VZ) {
this._v11._gD(!0);
this._t11._gD(!0);
this._Ab1 = _VZ
},
_2c1: function() {
return this._Ab1
},
_Va1: function(_y01) {
var _qV = new _ZM(this._wb1._f3, this._wb1._g3);
return _ZM._Vo(_y01, _qV)
},
_Wa1: function(_y01) {
return _y01 * this._wb1._Cc
},
_3c1: function(_y01) {
return _y01 * this._xb1
},
_ya1: function(data) {
this._e81 = this._v11._LY;
this._f81 = this._t11._LY;
this._Hb1 = this._v11._UY._QN;
this._Ib1 = this._t11._UY._QN;
this._Jb1 = this._v11._8Z;
this._Kb1 = this._t11._8Z;
this._Lb1 = this._v11._aZ;
this._Mb1 = this._t11._aZ;
var _u91 = data._G01[this._e81]._kb;
var _v91 = data._H01[this._e81]._xb._u8();
var _5S = data._H01[this._e81]._J3;
var _w91 = data._G01[this._f81]._kb;
var _x91 = data._H01[this._f81]._xb._u8();
var _6S = data._H01[this._f81]._J3;
var _4c1 = new _JN(_u91),
_5c1 = new _JN(_w91);
this._Fb1 = _dO(_4c1, _ZM._6N(this._tb1, this._Hb1));
this._Gb1 = _dO(_5c1, _ZM._6N(this._ub1, this._Ib1));
var _s91 = this._Jb1,
_t91 = this._Kb1;
var _wX = this._Lb1,
_xX = this._Mb1;
var _FY = (_wX + _xX == 0.0);
this._7Z._yF._f3 = _s91 + _t91 + this._Fb1._g3 * this._Fb1._g3 * _wX + this._Gb1._g3 * this._Gb1._g3 * _xX;
this._7Z._mN._f3 = -this._Fb1._g3 * this._Fb1._f3 * _wX - this._Gb1._g3 * this._Gb1._f3 * _xX;
this._7Z._yN._f3 = -this._Fb1._g3 * _wX - this._Gb1._g3 * _xX;
this._7Z._yF._g3 = this._7Z._mN._f3;
this._7Z._mN._g3 = _s91 + _t91 + this._Fb1._f3 * this._Fb1._f3 * _wX + this._Gb1._f3 * this._Gb1._f3 * _xX;
this._7Z._yN._g3 = this._Fb1._f3 * _wX + this._Gb1._f3 * _xX;
this._7Z._yF._Cc = this._7Z._yN._f3;
this._7Z._mN._Cc = this._7Z._yN._g3;
this._7Z._yN._Cc = _wX + _xX;
this._Nb1 = _wX + _xX;
if (this._Nb1 > 0.0) {
this._Nb1 = 1.0 / this._Nb1
}
if (this._Db1 == !1 || _FY) {
this._xb1 = 0.0
}
if (this._Cb1 && _FY == !1) {
var _6c1 = _w91 - _u91 - this._vb1;
if (_nO(this._zb1 - this._yb1) < 2.0 * _kM) {
this._Eb1 = _r11._0b1
} else if (_6c1 <= this._yb1) {
if (this._Eb1 != _r11._Za1) {
this._wb1._Cc = 0.0
}
this._Eb1 = _r11._Za1
} else if (_6c1 >= this._zb1) {
if (this._Eb1 != _r11.__a1) {
this._wb1._Cc = 0.0
}
this._Eb1 = _r11.__a1
} else {
this._Eb1 = _r11._Ya1;
this._wb1._Cc = 0.0
}
} else {
this._Eb1 = _r11._Ya1
}
if (data._ML._C01) {
this._wb1._Vo(data._ML._z01);
this._xb1 *= data._ML._z01;
var _qV = new _ZM(this._wb1._f3, this._wb1._g3);
_v91._6N(_ZM._Vo(_s91, _qV));
_5S -= _wX * (__N(this._Fb1, _qV) + this._xb1 + this._wb1._Cc);
_x91._Wh(_ZM._Vo(_t91, _qV));
_6S += _xX * (__N(this._Gb1, _qV) + this._xb1 + this._wb1._Cc)
} else {
this._wb1.__M();
this._xb1 = 0.0
}
data._H01[this._e81]._xb._2N(_v91);
data._H01[this._e81]._J3 = _5S;
data._H01[this._f81]._xb._2N(_x91);
data._H01[this._f81]._J3 = _6S
},
_Q91: function(data) {
var _v91 = data._H01[this._e81]._xb._u8();
var _5S = data._H01[this._e81]._J3;
var _x91 = data._H01[this._f81]._xb._u8();
var _6S = data._H01[this._f81]._J3;
var _s91 = this._Jb1,
_t91 = this._Kb1;
var _wX = this._Lb1,
_xX = this._Mb1;
var _FY = (_wX + _xX == 0.0);
if (this._Db1 && this._Eb1 != _r11._0b1 && _FY == !1) {
var _7c1 = _6S - _5S - this._Bb1;
var _XZ = -this._Nb1 * _7c1;
var _8c1 = this._xb1;
var _9c1 = data._ML._x01 * this._Ab1;
this._xb1 = _uO(this._xb1 + _XZ, -_9c1, _9c1);
_XZ = this._xb1 - _8c1;
_5S -= _wX * _XZ;
_6S += _xX * _XZ
}
if (this._Cb1 && this._Eb1 != _r11._Ya1 && _FY == !1) {
var _ac1 = _ZM._6N(_ZM._6N(_ZM._Wh(_x91, _1O(_6S, this._Gb1)), _v91), _1O(_5S, this._Fb1));
var _bc1 = _6S - _5S;
var _7c1 = new _hN(_ac1._f3, _ac1._g3, _bc1);
var _XZ = this._7Z._zN(_7c1)._3N();
if (this._Eb1 == _r11._0b1) {
this._wb1._Wh(_XZ)
} else if (this._Eb1 == _r11._Za1) {
var _W91 = this._wb1._Cc + _XZ._Cc;
if (_W91 < 0.0) {
var _cc1 = _ZM._Wh(_ac1._3N(), _ZM._Vo(this._wb1._Cc, new _ZM(this._7Z._yN._f3, this._7Z._yN._g3)));
var _dc1 = this._7Z._CN(_cc1);
_XZ._f3 = _dc1._f3;
_XZ._g3 = _dc1._g3;
_XZ._Cc = -this._wb1._Cc;
this._wb1._f3 += _dc1._f3;
this._wb1._g3 += _dc1._g3;
this._wb1._Cc = 0.0
} else {
this._wb1._Wh(_XZ)
}
} else if (this._Eb1 == _r11.__a1) {
var _W91 = this._wb1._Cc + _XZ._Cc;
if (_W91 > 0.0) {
var _cc1 = _ZM._Wh(_ac1._3N(), _ZM._Vo(this._wb1._Cc, new _ZM(this._7Z._yN._f3, this._7Z._yN._g3)));
var _dc1 = this._7Z._CN(_cc1);
_XZ._f3 = _dc1._f3;
_XZ._g3 = _dc1._g3;
_XZ._Cc = -this._wb1._Cc;
this._wb1._f3 += _dc1._f3;
this._wb1._g3 += _dc1._g3;
this._wb1._Cc = 0.0
} else {
this._wb1._Wh(_XZ)
}
}
var _qV = new _ZM(_XZ._f3, _XZ._g3);
_v91._6N(_ZM._Vo(_s91, _qV));
_5S -= _wX * (__N(this._Fb1, _qV) + _XZ._Cc);
_x91._Wh(_ZM._Vo(_t91, _qV));
_6S += _xX * (__N(this._Gb1, _qV) + _XZ._Cc)
} else {
var _7c1 = _ZM._6N(_ZM._6N(_ZM._Wh(_x91, _1O(_6S, this._Gb1)), _v91), _1O(_5S, this._Fb1));
var _XZ = this._7Z._CN(_7c1._3N());
this._wb1._f3 += _XZ._f3;
this._wb1._g3 += _XZ._g3;
_v91._6N(_ZM._Vo(_s91, _XZ));
_5S -= _wX * __N(this._Fb1, _XZ);
_x91._Wh(_ZM._Vo(_t91, _XZ));
_6S += _xX * __N(this._Gb1, _XZ)
}
data._H01[this._e81]._xb._2N(_v91);
data._H01[this._e81]._J3 = _5S;
data._H01[this._f81]._xb._2N(_x91);
data._H01[this._f81]._J3 = _6S
},
_aa1: function(data) {
var _J11 = data._G01[this._e81]._I3._u8();
var _u91 = data._G01[this._e81]._kb;
var _L11 = data._G01[this._f81]._I3._u8();
var _w91 = data._G01[this._f81]._kb;
var _4c1 = new _JN(_u91),
_5c1 = new _JN(_w91);
var _ec1 = 0.0;
var _fc1 = 0.0;
var _FY = (this._Lb1 + this._Mb1 == 0.0);
if (this._Cb1 && this._Eb1 != _r11._Ya1 && _FY == !1) {
var _0b = _w91 - _u91 - this._vb1;
var _gc1 = 0.0;
if (this._Eb1 == _r11._0b1) {
var _jO = _uO(_0b - this._yb1, -_qM, _qM);
_gc1 = -this._Nb1 * _jO;
_ec1 = _nO(_jO)
} else if (this._Eb1 == _r11._Za1) {
var _jO = _0b - this._yb1;
_ec1 = -_jO;
_jO = _uO(_jO + _kM, -_qM, 0.0);
_gc1 = -this._Nb1 * _jO
} else if (this._Eb1 == _r11.__a1) {
var _jO = _0b - this._zb1;
_ec1 = _jO;
_jO = _uO(_jO - _kM, 0.0, _qM);
_gc1 = -this._Nb1 * _jO
}
_u91 -= this._Lb1 * _gc1;
_w91 += this._Mb1 * _gc1
} {
_4c1._gi(_u91);
_5c1._gi(_w91);
var _8T = _dO(_4c1, _ZM._6N(this._tb1, this._Hb1));
var _9T = _dO(_5c1, _ZM._6N(this._ub1, this._Ib1));
var _jO = _ZM._6N(_ZM._6N(_ZM._Wh(_L11, _9T), _J11), _8T);
_fc1 = _jO._7N();
var _s91 = this._Jb1,
_t91 = this._Kb1;
var _wX = this._Lb1,
_xX = this._Mb1;
var _891 = new _jN();
_891._yF._f3 = _s91 + _t91 + _wX * _8T._g3 * _8T._g3 + _xX * _9T._g3 * _9T._g3;
_891._yF._g3 = -_wX * _8T._f3 * _8T._g3 - _xX * _9T._f3 * _9T._g3;
_891._mN._f3 = _891._yF._g3;
_891._mN._g3 = _s91 + _t91 + _wX * _8T._f3 * _8T._f3 + _xX * _9T._f3 * _9T._f3;
var _XZ = _891._rN(_jO)._3N();
_J11._6N(_ZM._Vo(_s91, _XZ));
_u91 -= _wX * __N(_8T, _XZ);
_L11._Wh(_ZM._Vo(_t91, _XZ));
_w91 += _xX * __N(_9T, _XZ)
}
data._G01[this._e81]._I3._2N(_J11);
data._G01[this._e81]._kb = _u91;
data._G01[this._f81]._I3._2N(_L11);
data._G01[this._f81]._kb = _w91;
return _fc1 <= _jM && _ec1 <= _kM
},
_dN: function(_eN) {
var _xr = _eN || {};
this.parent.prototype._dN.call(this, _xr);
_xr['localAnchorA'] = this._tb1._dN();
_xr['localAnchorB'] = this._ub1._dN();
_xr['referenceAngle'] = this._vb1;
_xr['lowerAngle'] = this._yb1;
_xr['upperAngle'] = this._zb1;
_xr['maxMotorTorque'] = this._Ab1;
_xr['motorSpeed'] = this._Bb1;
_xr['enableLimit'] = this._Cb1;
_xr['enableMotor'] = this._Db1;
return _xr
}
};
_bb1._EL(_r11);
function _hc1() {
this.parent.call(this);
this.type = _r11._Q21;
this.target = new _ZM(0.0, 0.0);
this._ic1 = 0.0;
this._jc1 = 5.0;
this._kc1 = 0.7;
Object.seal(this)
}
_hc1._EL(_Sa1);
function _9b1(_kZ) {
this.parent.call(this, _kZ);
_9M(_kZ.target._bN());
_9M(_PM(_kZ._ic1) && _kZ._ic1 >= 0.0);
_9M(_PM(_kZ._jc1) && _kZ._jc1 >= 0.0);
_9M(_PM(_kZ._kc1) && _kZ._kc1 >= 0.0);
this._lc1 = _kZ.target._u8();
this._ub1 = _hO(this._t11._VN(), this._lc1);
this._mc1 = _kZ._ic1;
this._wb1 = new _ZM();
this._nc1 = _kZ._jc1;
this._oc1 = _kZ._kc1;
this._pc1 = 0.0;
this._qc1 = 0.0;
this._e81 = 0;
this._f81 = 0;
this._Gb1 = new _ZM();
this._Ib1 = new _ZM();
this._Kb1 = 0;
this._Mb1 = 0;
this._7Z = new _jN();
this._rc1 = new _ZM()
}
_9b1.prototype = {
_J21: function() {
return this._lc1
},
_K21: function() {
return this._t11._2_(this._ub1)
},
_Va1: function(_y01) {
return _ZM._Vo(_y01, this._wb1)
},
_Wa1: function(_y01) {
return _y01 * 0.0
},
_sc1: function(target) {
if (this._t11._q_() == !1) {
this._t11._gD(!0);
}
this._lc1._2N(target)
},
_tc1: function() {
return this._lc1
},
_uc1: function(_RZ) {
this._mc1 = _RZ
},
_vc1: function() {
return this._mc1
},
_wc1: function(_xc1) {
this._nc1 = _xc1
},
_yc1: function() {
return this._nc1
},
_zc1: function(_Ca1) {
this._oc1 = _Ca1
},
_Ac1: function() {
return this._oc1
},
_IR: function(_JR) {
this._lc1._6N(_JR)
},
_ya1: function(data) {
this._f81 = this._t11._LY;
this._Ib1._2N(this._t11._UY._QN);
this._Kb1 = this._t11._8Z;
this._Mb1 = this._t11._aZ;
var _L11 = data._G01[this._f81]._I3._u8();
var _w91 = data._G01[this._f81]._kb;
var _x91 = data._H01[this._f81]._xb._u8();
var _6S = data._H01[this._f81]._J3;
var _5c1 = new _JN(_w91);
var _eP = this._t11._ZZ();
var _Bc1 = 2.0 * _eM * this._nc1;
var _mk = 2.0 * _eP * this._oc1 * _Bc1;
var _eT = _eP * (_Bc1 * _Bc1);
var _K3 = data._ML._x01;
_9M(_mk + _K3 * _eT > _dM);
this._qc1 = _K3 * (_mk + _K3 * _eT);
if (this._qc1 != 0.0) {
this._qc1 = 1.0 / this._qc1
}
this._pc1 = _K3 * _eT * this._qc1;
this._Gb1._2N(_dO(_5c1, _ZM._6N(this._ub1, this._Ib1)));
var _891 = new _jN();
_891._yF._f3 = this._Kb1 + this._Mb1 * this._Gb1._g3 * this._Gb1._g3 + this._qc1;
_891._yF._g3 = -this._Mb1 * this._Gb1._f3 * this._Gb1._g3;
_891._mN._f3 = _891._yF._g3;
_891._mN._g3 = this._Kb1 + this._Mb1 * this._Gb1._f3 * this._Gb1._f3 + this._qc1;
this._7Z._2N(_891._oN());
this._rc1._2N(_ZM._6N(_ZM._Wh(_L11, this._Gb1), this._lc1));
this._rc1._Vo(this._pc1);
_6S *= 0.98;
if (data._ML._C01) {
this._wb1._Vo(data._ML._z01);
_x91._Wh(_ZM._Vo(this._Kb1, this._wb1));
_6S += this._Mb1 * __N(this._Gb1, this._wb1)
} else {
this._wb1.__M()
}
data._H01[this._f81]._xb._2N(_x91);
data._H01[this._f81]._J3 = _6S
},
_Q91: function(data) {
var _x91 = data._H01[this._f81]._xb._u8();
var _6S = data._H01[this._f81]._J3;
var _7c1 = _ZM._Wh(_x91, _1O(_6S, this._Gb1));
var _XZ = _2O(this._7Z, (_ZM._Wh(_ZM._Wh(_7c1, this._rc1), _ZM._Vo(this._qc1, this._wb1)))._3N());
var _8c1 = this._wb1._u8();
this._wb1._Wh(_XZ);
var _9c1 = data._ML._x01 * this._mc1;
if (this._wb1._8N() > _9c1 * _9c1) {
this._wb1._Vo(_9c1 / this._wb1._7N())
}
_XZ._2N(_ZM._6N(this._wb1, _8c1));
_x91._Wh(_ZM._Vo(this._Kb1, _XZ));
_6S += this._Mb1 * __N(this._Gb1, _XZ);
data._H01[this._f81]._xb._2N(_x91);
data._H01[this._f81]._J3 = _6S
},
_aa1: function(data) {
return ! 0
}
};
_9b1._EL(_r11);
function _Cc1() {
this.parent.call(this);
this.type = _r11._L21;
this._kb1 = new _ZM(0.0, 0.0);
this._lb1 = new _ZM(0.0, 0.0);
this.length = 1.0;
this._jc1 = 0.0;
this._kc1 = 0.0;
Object.seal(this)
}
_Cc1.prototype = {
_zT: function(_gt, _ht, _Dc1, _Ec1) {
this._x11 = _gt;
this._y11 = _ht;
this._kb1 = this._x11._5_(_Dc1);
this._lb1 = this._y11._5_(_Ec1);
var _mk = _ZM._6N(_Ec1, _Dc1);
this.length = _mk._7N()
},
_fN: function(data, _D21, _Ua1) {
this.parent.prototype._fN.call(this, data, _D21, _Ua1);
this._kb1._fN(data['localAnchorA']);
this._lb1._fN(data['localAnchorB']);
this.length = data['length'];
this._jc1 = data['frequencyHz'];
this._kc1 = data['dampingRatio']
}
};
_Cc1._EL(_Sa1);
function _8b1(_kZ) {
this.parent.call(this, _kZ);
this._tb1 = _kZ._kb1._u8();
this._ub1 = _kZ._lb1._u8();
this._Fc1 = _kZ.length;
this._nc1 = _kZ._jc1;
this._oc1 = _kZ._kc1;
this._wb1 = 0.0;
this._qc1 = 0.0;
this._Gc1 = 0.0;
this._e81 = 0;
this._f81 = 0;
this._Hc1 = new _ZM();
this._Fb1 = new _ZM();
this._Gb1 = new _ZM();
this._Hb1 = new _ZM();
this._Ib1 = new _ZM();
this._Jb1 = 0;
this._Kb1 = 0;
this._Lb1 = 0;
this._Mb1 = 0;
this._7Z = 0
}
_8b1.prototype = {
_J21: function() {
return this._v11._2_(this._tb1);
},
_K21: function() {
return this._t11._2_(this._ub1)
},
_Va1: function(_y01) {
var _BX = _ZM._Vo((_y01 * this._wb1), this._Hc1);
return _BX
},
_Wa1: function(_y01) {
return 0.0
},
_Ob1: function() {
return this._tb1
},
_Pb1: function() {
return this._ub1
},
_Ic1: function(length) {
this._Fc1 = length
},
_Jc1: function() {
return this._Fc1
},
_wc1: function(_xc1) {
this._nc1 = _xc1
},
_yc1: function() {
return this._nc1
},
_zc1: function(_Ca1) {
this._oc1 = _Ca1
},
_Ac1: function() {
return this._oc1
},
_ya1: function(data) {
this._e81 = this._v11._LY;
this._f81 = this._t11._LY;
this._Hb1._2N(this._v11._UY._QN);
this._Ib1._2N(this._t11._UY._QN);
this._Jb1 = this._v11._8Z;
this._Kb1 = this._t11._8Z;
this._Lb1 = this._v11._aZ;
this._Mb1 = this._t11._aZ;
var _J11 = data._G01[this._e81]._I3._u8();
var _u91 = data._G01[this._e81]._kb;
var _v91 = data._H01[this._e81]._xb._u8();
var _5S = data._H01[this._e81]._J3;
var _L11 = data._G01[this._f81]._I3._u8();
var _w91 = data._G01[this._f81]._kb;
var _x91 = data._H01[this._f81]._xb._u8();
var _6S = data._H01[this._f81]._J3;
var _4c1 = new _JN(_u91),
_5c1 = new _JN(_w91);
this._Fb1 = _dO(_4c1, _ZM._6N(this._tb1, this._Hb1));
this._Gb1 = _dO(_5c1, _ZM._6N(this._ub1, this._Ib1));
this._Hc1 = _ZM._6N(_ZM._6N(_ZM._Wh(_L11, this._Gb1), _J11), this._Fb1);
var length = this._Hc1._7N();
if (length > _jM) {
this._Hc1._Vo(1.0 / length)
} else {
this._Hc1._gi(0.0, 0.0)
}
var _Kc1 = __N(this._Fb1, this._Hc1);
var _Lc1 = __N(this._Gb1, this._Hc1);
var _Mc1 = this._Jb1 + this._Lb1 * _Kc1 * _Kc1 + this._Kb1 + this._Mb1 * _Lc1 * _Lc1;
this._7Z = _Mc1 != 0.0 ? 1.0 / _Mc1: 0.0;
if (this._nc1 > 0.0) {
var _jO = length - this._Fc1;
var _Bc1 = 2.0 * _eM * this._nc1;
var _mk = 2.0 * this._7Z * this._oc1 * _Bc1;
var _eT = this._7Z * _Bc1 * _Bc1;
var _K3 = data._ML._x01;
this._qc1 = _K3 * (_mk + _K3 * _eT);
this._qc1 = this._qc1 != 0.0 ? 1.0 / this._qc1: 0.0;
this._Gc1 = _jO * _K3 * _eT * this._qc1;
_Mc1 += this._qc1;
this._7Z = _Mc1 != 0.0 ? 1.0 / _Mc1: 0.0
} else {
this._qc1 = 0.0;
this._Gc1 = 0.0
}
if (data._ML._C01) {
this._wb1 *= data._ML._z01;
var _qV = _ZM._Vo(this._wb1, this._Hc1);
_v91._6N(_ZM._Vo(this._Jb1, _qV));
_5S -= this._Lb1 * __N(this._Fb1, _qV);
_x91._Wh(_ZM._Vo(this._Kb1, _qV));
_6S += this._Mb1 * __N(this._Gb1, _qV)
} else {
this._wb1 = 0.0
}
data._H01[this._e81]._xb._2N(_v91);
data._H01[this._e81]._J3 = _5S;
data._H01[this._f81]._xb._2N(_x91);
data._H01[this._f81]._J3 = _6S
},
_Q91: function(data) {
var _v91 = data._H01[this._e81]._xb._u8();
var _5S = data._H01[this._e81]._J3;
var _x91 = data._H01[this._f81]._xb._u8();
var _6S = data._H01[this._f81]._J3;
var _Nc1 = _ZM._Wh(_v91, _1O(_5S, this._Fb1));
var _Oc1 = _ZM._Wh(_x91, _1O(_6S, this._Gb1));
var _7c1 = _ZN(this._Hc1, _ZM._6N(_Oc1, _Nc1));
var _XZ = -this._7Z * (_7c1 + this._Gc1 + this._qc1 * this._wb1);
this._wb1 += _XZ;
var _qV = _ZM._Vo(_XZ, this._Hc1);
_v91._6N(_ZM._Vo(this._Jb1, _qV));
_5S -= this._Lb1 * __N(this._Fb1, _qV);
_x91._Wh(_ZM._Vo(this._Kb1, _qV));
_6S += this._Mb1 * __N(this._Gb1, _qV);
data._H01[this._e81]._xb._2N(_v91);
data._H01[this._e81]._J3 = _5S;
data._H01[this._f81]._xb._2N(_x91);
data._H01[this._f81]._J3 = _6S
},
_aa1: function(data) {
if (this._nc1 > 0.0) {
return ! 0
}
var _J11 = data._G01[this._e81]._I3._u8();
var _u91 = data._G01[this._e81]._kb;
var _L11 = data._G01[this._f81]._I3._u8();
var _w91 = data._G01[this._f81]._kb;
var _4c1 = new _JN(_u91),
_5c1 = new _JN(_w91);
var _8T = _dO(_4c1, _ZM._6N(this._tb1, this._Hb1));
var _9T = _dO(_5c1, _ZM._6N(this._ub1, this._Ib1));
var _vb = _ZM._6N(_ZM._6N(_ZM._Wh(_L11, _9T), _J11), _8T);
var length = _vb._9N();
var _jO = length - this._Fc1;
_jO = _uO(_jO, -_pM, _pM);
var _XZ = -this._7Z * _jO;
var _qV = _ZM._Vo(_XZ, _vb);
_J11._6N(_ZM._Vo(this._Jb1, _qV));
_u91 -= this._Lb1 * __N(_8T, _qV);
_L11._Wh(_ZM._Vo(this._Kb1, _qV));
_w91 += this._Mb1 * __N(_9T, _qV);
data._G01[this._e81]._I3._2N(_J11);
data._G01[this._e81]._kb = _u91;
data._G01[this._f81]._I3._2N(_L11);
data._G01[this._f81]._kb = _w91;
return _nO(_jO) < _jM
},
_dN: function(_eN) {
var _xr = _eN || {};
this.parent.prototype._dN.call(this, _xr);
_xr['localAnchorA'] = this._tb1._dN();
_xr['localAnchorB'] = this._ub1._dN();
_xr['length'] = this._Fc1;
_xr['frequencyHz'] = this._nc1;
_xr['dampingRatio'] = this._oc1;
return _xr
}
};
_8b1._EL(_r11);
function _Pc1() {
this.parent.call(this);
this.type = _r11._2b1;
this._kb1 = new _ZM();
this._lb1 = new _ZM();
this._Qc1 = new _ZM(1.0, 0.0);
this._mb1 = 0.0;
this._rb1 = !1;
this._Rc1 = 0.0;
this._Sc1 = 0.0;
this._sb1 = !1;
this._Tc1 = 0.0;
this._qb1 = 0.0;
Object.seal(this)
}
_Pc1.prototype = {
_zT: function(_w21, _x21, anchor, _RO) {
this._x11 = _w21;
this._y11 = _x21;
this._kb1 = this._x11._5_(anchor);
this._lb1 = this._y11._5_(anchor);
this._Qc1 = this._x11._7_(_RO);
this._mb1 = this._y11._KN() - this._x11._KN()
},
_fN: function(data, _D21, _Ua1) {
this.parent.prototype._fN.call(this, data, _D21, _Ua1);
this._kb1._fN(data['localAnchorA']);
this._lb1._fN(data['localAnchorB']);
this._Qc1._fN(data['localAxisA']);
this._mb1 = data['referenceAngle'];
this._rb1 = data['enableLimit'];
this._Rc1 = data['lowerTranslation'];
this._Sc1 = data['upperTranslation'];
this._sb1 = data['enableMotor'];
this._Tc1 = data['maxMotorForce'];
this._qb1 = data['motorSpeed']
}
};
_Pc1._EL(_Sa1);
function _ab1(_kZ) {
this.parent.call(this, _kZ);
this._tb1 = _kZ._kb1._u8();
this._ub1 = _kZ._lb1._u8();
this._Uc1 = _kZ._Qc1._u8();
this._Uc1._9N();
this._Vc1 = _1O(1.0, this._Uc1);
this._vb1 = _kZ._mb1;
this._wb1 = new _hN();
this._Nb1 = 0.0;
this._xb1 = 0.0;
this._Wc1 = _kZ._Rc1;
this._Xc1 = _kZ._Sc1;
this._Yc1 = _kZ._Tc1;
this._Bb1 = _kZ._qb1;
this._Cb1 = _kZ._rb1;
this._Db1 = _kZ._sb1;
this._Eb1 = _r11._Ya1;
this._XX = new _ZM();
this._Zc1 = new _ZM();
this._e81 = 0;
this._f81 = 0;
this._Hb1 = new _ZM();
this._Ib1 = new _ZM();
this._Jb1 = 0;
this._Kb1 = 0;
this._Lb1 = 0;
this._Mb1 = 0;
this.__c1 = 0,
this._0d1 = 0;
this._1d1 = 0,
this._2d1 = 0;
this._3d1 = new _wN();
this._Nb1 = 0
}
_ab1.prototype = {
_J21: function() {
return this._v11._2_(this._tb1)
},
_K21: function() {
return this._t11._2_(this._ub1)
},
_Va1: function(_y01) {
return _ZM._Vo(_y01, _ZM._Wh(_ZM._Vo(this._wb1._f3, this._Zc1), _ZM._Vo((this._xb1 + this._wb1._Cc), this._XX)))
},
_Wa1: function(_y01) {
return _y01 * this._wb1._g3
},
_Ob1: function() {
return this._tb1
},
_Pb1: function() {
return this._ub1;
},
_4d1: function() {
return this._Uc1
},
_Qb1: function() {
return this._vb1
},
_5d1: function() {
var _mS = this._v11._2_(this._tb1);
var _nS = this._t11._2_(this._ub1);
var _mk = _ZM._6N(_nS, _mS);
var _RO = this._v11._3_(this._Uc1);
var _La1 = _ZN(_mk, _RO);
return _La1
},
_Sb1: function() {
var _w21 = this._v11;
var _x21 = this._t11;
var _8T = _dO(_w21._MV._fu, _ZM._6N(this._tb1, _w21._UY._QN));
var _9T = _dO(_x21._MV._fu, _ZM._6N(this._ub1, _x21._UY._QN));
var _TO = _ZM._Wh(_w21._UY._I3, _8T);
var _UO = _ZM._Wh(_x21._UY._I3, _9T);
var _mk = _ZM._6N(_UO, _TO);
var _RO = _dO(_w21._MV._fu, this._Uc1);
var _v91 = _w21._ZY;
var _x91 = _x21._ZY;
var _5S = _w21.__Y;
var _6S = _x21.__Y;
var _h3 = _ZN(_mk, _1O(_5S, _RO)) + _ZN(_RO, _ZM._6N(_ZM._6N(_ZM._Wh(_x91, _1O(_6S, _9T)), _v91), _1O(_5S, _8T)));
return _h3
},
_Tb1: function() {
return this._Cb1
},
_Ub1: function(_m_) {
if (_m_ != this._Cb1) {
this._v11._gD(!0);
this._t11._gD(!0);
this._Cb1 = _m_;
this._wb1._Cc = 0.0
}
},
_Vb1: function() {
return this._Wc1
},
_Wb1: function() {
return this._Xc1
},
_Xb1: function(_Sz, _zQ) {
_9M(_Sz <= _zQ);
if (_Sz != this._Wc1 || _zQ != this._Xc1) {
this._v11._gD(!0);
this._t11._gD(!0);
this._Wc1 = _Sz;
this._Xc1 = _zQ;
this._wb1._Cc = 0.0
}
},
_Yb1: function() {
return this._Db1
},
_Zb1: function(_m_) {
this._v11._gD(!0);
this._t11._gD(!0);
this._Db1 = _m_
},
__b1: function(_h3) {
this._v11._gD(!0);
this._t11._gD(!0);
this._Bb1 = _h3
},
_0c1: function() {
return this._Bb1
},
_6d1: function(_RZ) {
this._v11._gD(!0);
this._t11._gD(!0);
this._Yc1 = _RZ
},
_7d1: function() {
return this._Yc1
},
_8d1: function(_y01) {
return _y01 * this._xb1
},
_ya1: function(data) {
this._e81 = this._v11._LY;
this._f81 = this._t11._LY;
this._Hb1 = this._v11._UY._QN;
this._Ib1 = this._t11._UY._QN;
this._Jb1 = this._v11._8Z;
this._Kb1 = this._t11._8Z;
this._Lb1 = this._v11._aZ;
this._Mb1 = this._t11._aZ;
var _J11 = data._G01[this._e81]._I3._u8();
var _u91 = data._G01[this._e81]._kb;
var _v91 = data._H01[this._e81]._xb._u8();
var _5S = data._H01[this._e81]._J3;
var _L11 = data._G01[this._f81]._I3._u8();
var _w91 = data._G01[this._f81]._kb;
var _x91 = data._H01[this._f81]._xb._u8();
var _6S = data._H01[this._f81]._J3;
var _4c1 = new _JN(_u91),
_5c1 = new _JN(_w91);
var _8T = _dO(_4c1, _ZM._6N(this._tb1, this._Hb1));
var _9T = _dO(_5c1, _ZM._6N(this._ub1, this._Ib1));
var _mk = _ZM._Wh(_ZM._6N(_L11, _J11), _ZM._6N(_9T, _8T));
var _s91 = this._Jb1,
_t91 = this._Kb1;
var _wX = this._Lb1,
_xX = this._Mb1; {
this._XX = _dO(_4c1, this._Uc1);
this._1d1 = __N(_ZM._Wh(_mk, _8T), this._XX);
this._2d1 = __N(_9T, this._XX);
this._Nb1 = _s91 + _t91 + _wX * this._1d1 * this._1d1 + _xX * this._2d1 * this._2d1;
if (this._Nb1 > 0.0) {
this._Nb1 = 1.0 / this._Nb1
}
} {
this._Zc1 = _dO(_4c1, this._Vc1);
this.__c1 = __N(_ZM._Wh(_mk, _8T), this._Zc1);
this._0d1 = __N(_9T, this._Zc1);
var _L91 = _s91 + _t91 + _wX * this.__c1 * this.__c1 + _xX * this._0d1 * this._0d1;
var _N91 = _wX * this.__c1 + _xX * this._0d1;
var _9d1 = _wX * this.__c1 * this._1d1 + _xX * this._0d1 * this._2d1;
var _M91 = _wX + _xX;
if (_M91 == 0.0) {
_M91 = 1.0
}
var _ad1 = _wX * this._1d1 + _xX * this._2d1;
var _bd1 = _s91 + _t91 + _wX * this._1d1 * this._1d1 + _xX * this._2d1 * this._2d1;
this._3d1._yF._gi(_L91, _N91, _9d1);
this._3d1._mN._gi(_N91, _M91, _ad1);
this._3d1._yN._gi(_9d1, _ad1, _bd1)
}
if (this._Cb1) {
var _cd1 = _ZN(this._XX, _mk);
if (_nO(this._Xc1 - this._Wc1) < 2.0 * _jM) {
this._Eb1 = _r11._0b1
} else if (_cd1 <= this._Wc1) {
if (this._Eb1 != _r11._Za1) {
this._Eb1 = _r11._Za1;
this._wb1._Cc = 0.0
}
} else if (_cd1 >= this._Xc1) {
if (this._Eb1 != _r11.__a1) {
this._Eb1 = _r11.__a1;
this._wb1._Cc = 0.0
}
} else {
this._Eb1 = _r11._Ya1;
this._wb1._Cc = 0.0
}
} else {
this._Eb1 = _r11._Ya1;
this._wb1._Cc = 0.0
}
if (this._Db1 == !1) {
this._xb1 = 0.0
}
if (data._ML._C01) {
this._wb1._Vo(data._ML._z01);
this._xb1 *= data._ML._z01;
var _qV = _ZM._Wh(_ZM._Vo(this._wb1._f3, this._Zc1), _ZM._Vo((this._xb1 + this._wb1._Cc), this._XX));
var _dd1 = this._wb1._f3 * this.__c1 + this._wb1._g3 + (this._xb1 + this._wb1._Cc) * this._1d1;
var _ed1 = this._wb1._f3 * this._0d1 + this._wb1._g3 + (this._xb1 + this._wb1._Cc) * this._2d1;
_v91._6N(_ZM._Vo(_s91, _qV));
_5S -= _wX * _dd1;
_x91._Wh(_ZM._Vo(_t91, _qV));
_6S += _xX * _ed1
} else {
this._wb1.__M();
this._xb1 = 0.0
}
data._H01[this._e81]._xb._2N(_v91);
data._H01[this._e81]._J3 = _5S;
data._H01[this._f81]._xb._2N(_x91);
data._H01[this._f81]._J3 = _6S
},
_Q91: function(data) {
var _v91 = data._H01[this._e81]._xb._u8();
var _5S = data._H01[this._e81]._J3;
var _x91 = data._H01[this._f81]._xb._u8();
var _6S = data._H01[this._f81]._J3;
var _s91 = this._Jb1,
_t91 = this._Kb1;
var _wX = this._Lb1,
_xX = this._Mb1;
if (this._Db1 && this._Eb1 != _r11._0b1) {
var _7c1 = _ZN(this._XX, _ZM._6N(_x91, _v91)) + this._2d1 * _6S - this._1d1 * _5S;
var _XZ = this._Nb1 * (this._Bb1 - _7c1);
var _8c1 = this._xb1;
var _9c1 = data._ML._x01 * this._Yc1;
this._xb1 = _uO(this._xb1 + _XZ, -_9c1, _9c1);
_XZ = this._xb1 - _8c1;
var _qV = _ZM._Vo(_XZ, this._XX);
var _dd1 = _XZ * this._1d1;
var _ed1 = _XZ * this._2d1;
_v91._6N(_ZM._Vo(_s91, _qV));
_5S -= _wX * _dd1;
_x91._Wh(_ZM._Vo(_t91, _qV));
_6S += _xX * _ed1
}
var _ac1 = new _ZM();
_ac1._f3 = _ZN(this._Zc1, _ZM._6N(_x91, _v91)) + this._0d1 * _6S - this.__c1 * _5S;
_ac1._g3 = _6S - _5S;
if (this._Cb1 && this._Eb1 != _r11._Ya1) {
var _bc1;
_bc1 = _ZN(this._XX, _ZM._6N(_x91, _v91)) + this._2d1 * _6S - this._1d1 * _5S;
var _7c1 = new _hN(_ac1._f3, _ac1._g3, _bc1);
var _fd1 = this._wb1._u8();
var _gd1 = this._3d1._zN(_7c1._3N());
this._wb1._Wh(_gd1);
if (this._Eb1 == _r11._Za1) {
this._wb1._Cc = _sO(this._wb1._Cc, 0.0)
} else if (this._Eb1 == _r11.__a1) {
this._wb1._Cc = _qO(this._wb1._Cc, 0.0)
}
var _W9 = _ZM._6N(_ac1._3N(), _ZM._Vo((this._wb1._Cc - _fd1._Cc), new _ZM(this._3d1._yN._f3, this._3d1._yN._g3)));
var _hd1 = _ZM._Wh(this._3d1._CN(_W9), new _ZM(_fd1._f3, _fd1._g3));
this._wb1._f3 = _hd1._f3;
this._wb1._g3 = _hd1._g3;
_gd1 = _hN._6N(this._wb1, _fd1);
var _qV = _ZM._Wh(_ZM._Vo(_gd1._f3, this._Zc1), _ZM._Vo(_gd1._Cc, this._XX));
var _dd1 = _gd1._f3 * this.__c1 + _gd1._g3 + _gd1._Cc * this._1d1;
var _ed1 = _gd1._f3 * this._0d1 + _gd1._g3 + _gd1._Cc * this._2d1;
_v91._6N(_ZM._Vo(_s91, _qV));
_5S -= _wX * _dd1;
_x91._Wh(_ZM._Vo(_t91, _qV));
_6S += _xX * _ed1
} else {
var _gd1 = this._3d1._CN(_ac1._3N());
this._wb1._f3 += _gd1._f3;
this._wb1._g3 += _gd1._g3;
var _qV = _ZM._Vo(_gd1._f3, this._Zc1);
var _dd1 = _gd1._f3 * this.__c1 + _gd1._g3;
var _ed1 = _gd1._f3 * this._0d1 + _gd1._g3;
_v91._6N(_ZM._Vo(_s91, _qV));
_5S -= _wX * _dd1;
_x91._Wh(_ZM._Vo(_t91, _qV));
_6S += _xX * _ed1
}
data._H01[this._e81]._xb._2N(_v91);
data._H01[this._e81]._J3 = _5S;
data._H01[this._f81]._xb._2N(_x91);
data._H01[this._f81]._J3 = _6S
},
_aa1: function(data) {
var _J11 = data._G01[this._e81]._I3._u8();
var _u91 = data._G01[this._e81]._kb;
var _L11 = data._G01[this._f81]._I3._u8();
var _w91 = data._G01[this._f81]._kb;
var _4c1 = new _JN(_u91),
_5c1 = new _JN(_w91);
var _s91 = this._Jb1,
_t91 = this._Kb1;
var _wX = this._Lb1,
_xX = this._Mb1;
var _8T = _dO(_4c1, _ZM._6N(this._tb1, this._Hb1));
var _9T = _dO(_5c1, _ZM._6N(this._ub1, this._Ib1));
var _mk = _ZM._6N(_ZM._6N(_ZM._Wh(_L11, _9T), _J11), _8T);
var _RO = _dO(_4c1, this._Uc1);
var _CH = __N(_ZM._Wh(_mk, _8T), _RO);
var _DH = __N(_9T, _RO);
var _id1 = _dO(_4c1, this._Vc1);
var _lp = __N(_ZM._Wh(_mk, _8T), _id1);
var _mp = __N(_9T, _id1);
var _XZ = new _hN();
var _jd1 = new _ZM();
_jd1._f3 = _ZN(_id1, _mk);
_jd1._g3 = _w91 - _u91 - this._vb1;
var _kd1 = _nO(_jd1._f3);
var _ec1 = _nO(_jd1._g3);
var _HY = !1;
var _ld1 = 0.0;
if (this._Cb1) {
var _La1 = _ZN(_RO, _mk);
if (_nO(this._Xc1 - this._Wc1) < 2.0 * _jM) {
_ld1 = _uO(_La1, -_pM, _pM);
_kd1 = _sO(_kd1, _nO(_La1));
_HY = !0;
} else if (_La1 <= this._Wc1) {
_ld1 = _uO(_La1 - this._Wc1 + _jM, -_pM, 0.0);
_kd1 = _sO(_kd1, this._Wc1 - _La1);
_HY = !0
} else if (_La1 >= this._Xc1) {
_ld1 = _uO(_La1 - this._Xc1 - _jM, 0.0, _pM);
_kd1 = _sO(_kd1, _La1 - this._Xc1);
_HY = !0
}
}
if (_HY) {
var _L91 = _s91 + _t91 + _wX * _lp * _lp + _xX * _mp * _mp;
var _N91 = _wX * _lp + _xX * _mp;
var _9d1 = _wX * _lp * _CH + _xX * _mp * _DH;
var _M91 = _wX + _xX;
if (_M91 == 0.0) {
_M91 = 1.0
}
var _ad1 = _wX * _CH + _xX * _DH;
var _bd1 = _s91 + _t91 + _wX * _CH * _CH + _xX * _DH * _DH;
var _891 = new _wN();
_891._yF._gi(_L91, _N91, _9d1);
_891._mN._gi(_N91, _M91, _ad1);
_891._yN._gi(_9d1, _ad1, _bd1);
var _jO = new _hN();
_jO._f3 = _jd1._f3;
_jO._g3 = _jd1._g3;
_jO._Cc = _ld1;
_XZ = _891._zN(_jO._3N())
} else {
var _L91 = _s91 + _t91 + _wX * _lp * _lp + _xX * _mp * _mp;
var _N91 = _wX * _lp + _xX * _mp;
var _M91 = _wX + _xX;
if (_M91 == 0.0) {
_M91 = 1.0
}
var _891 = new _jN();
_891._yF._gi(_L91, _N91);
_891._mN._gi(_N91, _M91);
var _md1 = _891._rN(_jd1._3N());
_XZ._f3 = _md1._f3;
_XZ._g3 = _md1._g3;
_XZ._Cc = 0.0
}
var _qV = _ZM._Wh(_ZM._Vo(_XZ._f3, _id1), _ZM._Vo(_XZ._Cc, _RO));
var _dd1 = _XZ._f3 * _lp + _XZ._g3 + _XZ._Cc * _CH;
var _ed1 = _XZ._f3 * _mp + _XZ._g3 + _XZ._Cc * _DH;
_J11._6N(_ZM._Vo(_s91, _qV));
_u91 -= _wX * _dd1;
_L11._Wh(_ZM._Vo(_t91, _qV));
_w91 += _xX * _ed1;
data._G01[this._e81]._I3._2N(_J11);
data._G01[this._e81]._kb = _u91;
data._G01[this._f81]._I3._2N(_L11);
data._G01[this._f81]._kb = _w91;
return _kd1 <= _jM && _ec1 <= _kM
},
_dN: function(_eN) {
var _xr = _eN || {};
this.parent.prototype._dN.call(this, _xr);
_xr['localAnchorA'] = this._tb1._dN();
_xr['localAnchorB'] = this._ub1._dN();
_xr['localAxisA'] = this._Uc1._dN();
_xr['referenceAngle'] = this._vb1;
_xr['enableLimit'] = this._Cb1;
_xr['lowerTranslation'] = this._Wc1;
_xr['upperTranslation'] = this._Xc1;
_xr['enableMotor'] = this._Db1;
_xr['maxMotorForce'] = this._Yc1;
_xr['motorSpeed'] = this._Bb1;
return _xr
}
};
_ab1._EL(_r11);
function _nd1() {
this.parent.call(this);
this.type = _r11._6b1;
this._kb1 = new _ZM();
this._lb1 = new _ZM();
this._ic1 = 0.0;
this._od1 = 0.0;
Object.seal(this)
}
_nd1.prototype = {
_zT: function(_w21, _x21, anchor) {
this._x11 = _w21;
this._y11 = _x21;
this._kb1._2N(this._x11._5_(anchor));
this._lb1._2N(this._y11._5_(anchor))
},
_fN: function(data, _D21, _Ua1) {
this.parent.prototype._fN.call(this, data, _D21, _Ua1);
this._kb1._fN(data['localAnchorA']);
this._lb1._fN(data['localAnchorB']);
this._ic1 = data['maxForce'];
this._od1 = data['maxTorque']
}
};
_nd1._EL(_Sa1);
function _gb1(_kZ) {
this.parent.call(this, _kZ);
this._tb1 = _kZ._kb1._u8();
this._ub1 = _kZ._lb1._u8();
this._pd1 = new _ZM();
this._qd1 = 0.0;
this._mc1 = _kZ._ic1;
this._rd1 = _kZ._od1;
this._e81 = 0;
this._f81 = 0;
this._Fb1 = new _ZM();
this._Gb1 = new _ZM();
this._Hb1 = new _ZM();
this._Ib1 = new _ZM();
this._Jb1 = 0;
this._Kb1 = 0;
this._Lb1 = 0;
this._Mb1 = 0;
this._sd1 = new _jN();
this._td1 = 0
}
_gb1.prototype = {
_J21: function() {
return this._v11._2_(this._tb1)
},
_K21: function() {
return this._t11._2_(this._ub1)
},
_Va1: function(_y01) {
return _ZM._Vo(_y01, this._pd1)
},
_Wa1: function(_y01) {
return _y01 * this._qd1
},
_Ob1: function() {
return this._tb1
},
_Pb1: function() {
return this._ub1
},
_uc1: function(_RZ) {
_9M(_PM(_RZ) && _RZ >= 0.0);
this._mc1 = _RZ
},
_vc1: function() {
return this._mc1
},
_ud1: function(_VZ) {
_9M(_PM(_VZ) && _VZ >= 0.0);
this._rd1 = _VZ
},
_vd1: function() {
return this._rd1
},
_ya1: function(data) {
this._e81 = this._v11._LY;
this._f81 = this._t11._LY;
this._Hb1._2N(this._v11._UY._QN);
this._Ib1._2N(this._t11._UY._QN);
this._Jb1 = this._v11._8Z;
this._Kb1 = this._t11._8Z;
this._Lb1 = this._v11._aZ;
this._Mb1 = this._t11._aZ;
var _u91 = data._G01[this._e81]._kb;
var _v91 = data._H01[this._e81]._xb._u8();
var _5S = data._H01[this._e81]._J3;
var _w91 = data._G01[this._f81]._kb;
var _x91 = data._H01[this._f81]._xb._u8();
var _6S = data._H01[this._f81]._J3;
var _4c1 = new _JN(_u91),
_5c1 = new _JN(_w91);
this._Fb1 = _dO(_4c1, _ZM._6N(this._tb1, this._Hb1));
this._Gb1 = _dO(_5c1, _ZM._6N(this._ub1, this._Ib1));
var _s91 = this._Jb1,
_t91 = this._Kb1;
var _wX = this._Lb1,
_xX = this._Mb1;
var _891 = new _jN();
_891._yF._f3 = _s91 + _t91 + _wX * this._Fb1._g3 * this._Fb1._g3 + _xX * this._Gb1._g3 * this._Gb1._g3;
_891._yF._g3 = -_wX * this._Fb1._f3 * this._Fb1._g3 - _xX * this._Gb1._f3 * this._Gb1._g3;
_891._mN._f3 = _891._yF._g3;
_891._mN._g3 = _s91 + _t91 + _wX * this._Fb1._f3 * this._Fb1._f3 + _xX * this._Gb1._f3 * this._Gb1._f3;
this._sd1 = _891._oN();
this._td1 = _wX + _xX;
if (this._td1 > 0.0) {
this._td1 = 1.0 / this._td1
}
if (data._ML._C01) {
this._pd1._Vo(data._ML._z01);
this._qd1 *= data._ML._z01;
var _qV = new _ZM(this._pd1._f3, this._pd1._g3);
_v91._6N(_ZM._Vo(_s91, _qV));
_5S -= _wX * (__N(this._Fb1, _qV) + this._qd1);
_x91._Wh(_ZM._Vo(_t91, _qV));
_6S += _xX * (__N(this._Gb1, _qV) + this._qd1)
} else {
this._pd1.__M();
this._qd1 = 0.0
}
data._H01[this._e81]._xb._2N(_v91);
data._H01[this._e81]._J3 = _5S;
data._H01[this._f81]._xb._2N(_x91);
data._H01[this._f81]._J3 = _6S
},
_Q91: function(data) {
var _v91 = data._H01[this._e81]._xb._u8();
var _5S = data._H01[this._e81]._J3;
var _x91 = data._H01[this._f81]._xb._u8();
var _6S = data._H01[this._f81]._J3;
var _s91 = this._Jb1,
_t91 = this._Kb1;
var _wX = this._Lb1,
_xX = this._Mb1;
var _K3 = data._ML._x01; {
var _7c1 = _6S - _5S;
var _XZ = -this._td1 * _7c1;
var _8c1 = this._qd1;
var _9c1 = _K3 * this._rd1;
this._qd1 = _uO(this._qd1 + _XZ, -_9c1, _9c1);
_XZ = this._qd1 - _8c1;
_5S -= _wX * _XZ;
_6S += _xX * _XZ
} {
var _7c1 = _ZM._Wh(_x91, _ZM._6N(_1O(_6S, this._Gb1), _ZM._6N(_v91, _1O(_5S, this._Fb1))));
var _XZ = _2O(this._sd1, _7c1)._3N();
var _8c1 = this._pd1._u8();
this._pd1._Wh(_XZ);
var _9c1 = _K3 * this._mc1;
if (this._pd1._8N() > _9c1 * _9c1) {
this._pd1._9N();
this._pd1._Vo(_9c1);
}
_XZ = _ZM._6N(this._pd1, _8c1);
_v91._6N(_ZM._Vo(_s91, _XZ));
_5S -= _wX * __N(this._Fb1, _XZ);
_x91._Wh(_ZM._Vo(_t91, _XZ));
_6S += _xX * __N(this._Gb1, _XZ)
}
data._H01[this._e81]._xb._2N(_v91);
data._H01[this._e81]._J3 = _5S;
data._H01[this._f81]._xb._2N(_x91);
data._H01[this._f81]._J3 = _6S
},
_aa1: function(data) {
return ! 0
},
_dN: function(_eN) {
var _xr = _eN || {};
this.parent.prototype._dN.call(this, _xr);
_xr['localAnchorA'] = this._tb1._dN();
_xr['localAnchorB'] = this._ub1._dN();
_xr['maxForce'] = this._mc1;
_xr['maxTorque'] = this._rd1;
return _xr
}
};
_gb1._EL(_r11);
function _wd1() {
this.parent.call(this);
this.type = _r11._5b1;
this._kb1 = new _ZM(0.0, 0.0);
this._lb1 = new _ZM(0.0, 0.0);
this._mb1 = 0.0;
this._jc1 = 0.0;
this._kc1 = 0.0;
Object.seal(this)
}
_wd1.prototype = {
_zT: function(_w21, _x21, anchor) {
this._x11 = _w21;
this._y11 = _x21;
this._kb1._2N(this._x11._5_(anchor));
this._lb1._2N(this._y11._5_(anchor));
this._mb1 = this._y11._KN() - this._x11._KN()
},
_fN: function(data, _D21, _Ua1) {
this.parent.prototype._fN.call(this, data, _D21, _Ua1);
this._kb1._fN(data['localAnchorA']);
this._lb1._fN(data['localAnchorB']);
this._mb1 = data['referenceAngle'];
this._jc1 = data['frequencyHz'];
this._kc1 = data['dampingRatio']
}
};
_wd1._EL(_Sa1);
function _fb1(_kZ) {
this.parent.call(this, _kZ);
this._Gc1 = 0;
this._qc1 = 0;
this._e81 = 0;
this._f81 = 0;
this._Fb1 = new _ZM();
this._Gb1 = new _ZM();
this._Hb1 = new _ZM();
this._Ib1 = new _ZM();
this._Jb1 = 0;
this._Kb1 = 0;
this._Lb1 = 0;
this._Mb1 = 0;
this._7Z = new _wN();
this._tb1 = _kZ._kb1._u8();
this._ub1 = _kZ._lb1._u8();
this._vb1 = _kZ._mb1;
this._nc1 = _kZ._jc1;
this._oc1 = _kZ._kc1;
this._wb1 = new _hN();
}
_fb1.prototype = {
_J21: function() {
return this._v11._2_(this._tb1)
},
_K21: function() {
return this._t11._2_(this._ub1)
},
_Va1: function(_y01) {
var _qV = new _ZM(this._wb1._f3, this._wb1._g3);
return _ZM._Vo(_y01, _qV)
},
_Wa1: function(_y01) {
return _y01 * this._wb1._Cc
},
_Ob1: function() {
return this._tb1
},
_Pb1: function() {
return this._ub1
},
_Qb1: function() {
return this._vb1
},
_wc1: function(_xc1) {
this._nc1 = _xc1
},
_yc1: function() {
return this._nc1
},
_zc1: function(_Ca1) {
this._oc1 = _Ca1
},
_Ac1: function() {
return this._oc1
},
_ya1: function(data) {
this._e81 = this._v11._LY;
this._f81 = this._t11._LY;
this._Hb1._2N(this._v11._UY._QN);
this._Ib1._2N(this._t11._UY._QN);
this._Jb1 = this._v11._8Z;
this._Kb1 = this._t11._8Z;
this._Lb1 = this._v11._aZ;
this._Mb1 = this._t11._aZ;
var _u91 = data._G01[this._e81]._kb;
var _v91 = data._H01[this._e81]._xb._u8();
var _5S = data._H01[this._e81]._J3;
var _w91 = data._G01[this._f81]._kb;
var _x91 = data._H01[this._f81]._xb._u8();
var _6S = data._H01[this._f81]._J3;
var _4c1 = new _JN(_u91),
_5c1 = new _JN(_w91);
this._Fb1._2N(_dO(_4c1, _ZM._6N(this._tb1, this._Hb1)));
this._Gb1._2N(_dO(_5c1, _ZM._6N(this._ub1, this._Ib1)));
var _s91 = this._Jb1,
_t91 = this._Kb1;
var _wX = this._Lb1,
_xX = this._Mb1;
var _891 = new _wN();
_891._yF._f3 = _s91 + _t91 + this._Fb1._g3 * this._Fb1._g3 * _wX + this._Gb1._g3 * this._Gb1._g3 * _xX;
_891._mN._f3 = -this._Fb1._g3 * this._Fb1._f3 * _wX - this._Gb1._g3 * this._Gb1._f3 * _xX;
_891._yN._f3 = -this._Fb1._g3 * _wX - this._Gb1._g3 * _xX;
_891._yF._g3 = _891._mN._f3;
_891._mN._g3 = _s91 + _t91 + this._Fb1._f3 * this._Fb1._f3 * _wX + this._Gb1._f3 * this._Gb1._f3 * _xX;
_891._yN._g3 = this._Fb1._f3 * _wX + this._Gb1._f3 * _xX;
_891._yF._Cc = _891._yN._f3;
_891._mN._Cc = _891._yN._g3;
_891._yN._Cc = _wX + _xX;
if (this._nc1 > 0.0) {
_891._DN(this._7Z);
var _xd1 = _wX + _xX;
var _F9 = _xd1 > 0.0 ? 1.0 / _xd1: 0.0;
var _jO = _w91 - _u91 - this._vb1;
var _Bc1 = 2.0 * _eM * this._nc1;
var _mk = 2.0 * _F9 * this._oc1 * _Bc1;
var _eT = _F9 * _Bc1 * _Bc1;
var _K3 = data._ML._x01;
this._qc1 = _K3 * (_mk + _K3 * _eT);
this._qc1 = this._qc1 != 0.0 ? 1.0 / this._qc1: 0.0;
this._Gc1 = _jO * _K3 * _eT * this._qc1;
_xd1 += this._qc1;
this._7Z._yN._Cc = _xd1 != 0.0 ? 1.0 / _xd1: 0.0
} else {
_891._FN(this._7Z);
this._qc1 = 0.0;
this._Gc1 = 0.0
}
if (data._ML._C01) {
this._wb1._Vo(data._ML._z01);
var _qV = new _ZM(this._wb1._f3, this._wb1._g3);
_v91._6N(_ZM._Vo(_s91, _qV));
_5S -= _wX * (__N(this._Fb1, _qV) + this._wb1._Cc);
_x91._Wh(_ZM._Vo(_t91, _qV));
_6S += _xX * (__N(this._Gb1, _qV) + this._wb1._Cc)
} else {
this._wb1.__M()
}
data._H01[this._e81]._xb._2N(_v91);
data._H01[this._e81]._J3 = _5S;
data._H01[this._f81]._xb._2N(_x91);
data._H01[this._f81]._J3 = _6S
},
_Q91: function(data) {
var _v91 = data._H01[this._e81]._xb._u8();
var _5S = data._H01[this._e81]._J3;
var _x91 = data._H01[this._f81]._xb._u8();
var _6S = data._H01[this._f81]._J3;
var _s91 = this._Jb1,
_t91 = this._Kb1;
var _wX = this._Lb1,
_xX = this._Mb1;
if (this._nc1 > 0.0) {
var _bc1 = _6S - _5S;
var _yd1 = -this._7Z._yN._Cc * (_bc1 + this._Gc1 + this._qc1 * this._wb1._Cc);
this._wb1._Cc += _yd1;
_5S -= _wX * _yd1;
_6S += _xX * _yd1;
var _ac1 = _ZM._6N(_ZM._6N(_ZM._Wh(_x91, _1O(_6S, this._Gb1)), _v91), _1O(_5S, this._Fb1));
var _md1 = _9O(this._7Z, _ac1)._3N();
this._wb1._f3 += _md1._f3;
this._wb1._g3 += _md1._g3;
var _qV = _md1._u8();
_v91._6N(_ZM._Vo(_s91, _qV));
_5S -= _wX * __N(this._Fb1, _qV);
_x91._Wh(_ZM._Vo(_t91, _qV));
_6S += _xX * __N(this._Gb1, _qV)
} else {
var _ac1 = _ZM._6N(_ZM._6N(_ZM._Wh(_x91, _1O(_6S, this._Gb1)), _v91), _1O(_5S, this._Fb1));
var _bc1 = _6S - _5S;
var _7c1 = new _hN(_ac1._f3, _ac1._g3, _bc1);
var _XZ = _8O(this._7Z, _7c1)._3N();
this._wb1._Wh(_XZ);
var _qV = new _ZM(_XZ._f3, _XZ._g3);
_v91._6N(_ZM._Vo(_s91, _qV));
_5S -= _wX * (__N(this._Fb1, _qV) + _XZ._Cc);
_x91._Wh(_ZM._Vo(_t91, _qV));
_6S += _xX * (__N(this._Gb1, _qV) + _XZ._Cc)
}
data._H01[this._e81]._xb._2N(_v91);
data._H01[this._e81]._J3 = _5S;
data._H01[this._f81]._xb._2N(_x91);
data._H01[this._f81]._J3 = _6S
},
_aa1: function(data) {
var _J11 = data._G01[this._e81]._I3._u8();
var _u91 = data._G01[this._e81]._kb;
var _L11 = data._G01[this._f81]._I3._u8();
var _w91 = data._G01[this._f81]._kb;
var _4c1 = new _JN(_u91),
_5c1 = new _JN(_w91);
var _s91 = this._Jb1,
_t91 = this._Kb1;
var _wX = this._Lb1,
_xX = this._Mb1;
var _8T = _dO(_4c1, _ZM._6N(this._tb1, this._Hb1));
var _9T = _dO(_5c1, _ZM._6N(this._ub1, this._Ib1));
var _fc1, _ec1;
var _891 = new _wN();
_891._yF._f3 = _s91 + _t91 + _8T._g3 * _8T._g3 * _wX + _9T._g3 * _9T._g3 * _xX;
_891._mN._f3 = -_8T._g3 * _8T._f3 * _wX - _9T._g3 * _9T._f3 * _xX;
_891._yN._f3 = -_8T._g3 * _wX - _9T._g3 * _xX;
_891._yF._g3 = _891._mN._f3;
_891._mN._g3 = _s91 + _t91 + _8T._f3 * _8T._f3 * _wX + _9T._f3 * _9T._f3 * _xX;
_891._yN._g3 = _8T._f3 * _wX + _9T._f3 * _xX;
_891._yF._Cc = _891._yN._f3;
_891._mN._Cc = _891._yN._g3;
_891._yN._Cc = _wX + _xX;
if (this._nc1 > 0.0) {
var _jd1 = _ZM._6N(_ZM._6N(_ZM._Wh(_L11, _9T), _J11), _8T);
_fc1 = _jd1._7N();
_ec1 = 0.0;
var _qV = _891._CN(_jd1)._3N();
_J11._6N(_ZM._Vo(_s91, _qV));
_u91 -= _wX * __N(_8T, _qV);
_L11._Wh(_ZM._Vo(_t91, _qV));
_w91 += _xX * __N(_9T, _qV)
} else {
var _jd1 = _ZM._6N(_ZM._6N(_ZM._Wh(_L11, _9T), _J11), _8T);
var _ld1 = _w91 - _u91 - this._vb1;
_fc1 = _jd1._7N();
_ec1 = _nO(_ld1);
var _jO = new _hN(_jd1._f3, _jd1._g3, _ld1);
var _XZ = _891._zN(_jO)._3N();
var _qV = new _ZM(_XZ._f3, _XZ._g3);
_J11._6N(_ZM._Vo(_s91, _qV));
_u91 -= _wX * (__N(_8T, _qV) + _XZ._Cc);
_L11._Wh(_ZM._Vo(_t91, _qV));
_w91 += _xX * (__N(_9T, _qV) + _XZ._Cc)
}
data._G01[this._e81]._I3._2N(_J11);
data._G01[this._e81]._kb = _u91;
data._G01[this._f81]._I3._2N(_L11);
data._G01[this._f81]._kb = _w91;
return _fc1 <= _jM && _ec1 <= _kM
},
_dN: function(_eN) {
var _xr = _eN || {};
this.parent.prototype._dN.call(this, _xr);
_xr['localAnchorA'] = this._tb1._dN();
_xr['localAnchorB'] = this._ub1._dN();
_xr['referenceAngle'] = this._vb1;
_xr['frequencyHz'] = this._nc1;
_xr['dampingRatio'] = this._oc1;
return _xr
}
};
_fb1._EL(_r11);
function _zd1() {
this.parent.call(this);
this.type = _r11._4b1;
this._kb1 = new _ZM();
this._lb1 = new _ZM();
this._Qc1 = new _ZM(1.0, 0.0);
this._sb1 = !1;
this._pb1 = 0.0;
this._qb1 = 0.0;
this._jc1 = 2.0;
this._kc1 = 0.7;
Object.seal(this)
}
_zd1.prototype = {
_zT: function(_w21, _x21, anchor, _RO) {
this._x11 = _w21;
this._y11 = _x21;
this._kb1._2N(this._x11._5_(anchor));
this._lb1._2N(this._y11._5_(anchor));
this._Qc1._2N(this._x11._7_(_RO))
},
_fN: function(data, _D21, _Ua1) {
this.parent.prototype._fN.call(this, data, _D21, _Ua1);
this._kb1._fN(data['localAnchorA']);
this._lb1._fN(data['localAnchorB']);
this._Qc1._fN(data['localAxisA']);
this._sb1 = data['enableMotor'];
this._pb1 = data['maxMotorTorque'];
this._qb1 = data['motorSpeed'];
this._jc1 = data['frequencyHz'];
this._kc1 = data['dampingRatio']
}
};
_zd1._EL(_Sa1);
function _eb1(_kZ) {
this.parent.call(this, _kZ);
this._e81 = 0;
this._f81 = 0;
this._Hb1 = new _ZM();
this._Ib1 = new _ZM();
this._Jb1 = 0;
this._Kb1 = 0;
this._Lb1 = 0;
this._Mb1 = 0;
this._tb1 = _kZ._kb1._u8();
this._ub1 = _kZ._lb1._u8();
this._Uc1 = _kZ._Qc1._u8();
this._Vc1 = _1O(1.0, this._Uc1);
this._7Z = 0.0;
this._wb1 = 0.0;
this._Nb1 = 0.0;
this._xb1 = 0.0;
this._Ad1 = 0.0;
this._Bd1 = 0.0;
this._Ab1 = _kZ._pb1;
this._Bb1 = _kZ._qb1;
this._Db1 = _kZ._sb1;
this._nc1 = _kZ._jc1;
this._oc1 = _kZ._kc1;
this._Gc1 = 0.0;
this._qc1 = 0.0;
this._Cd1 = new _ZM();
this._Dd1 = new _ZM();
this._Ed1 = this._Fd1 = 0;
this._Gd1 = this._Hd1 = 0
}
_eb1.prototype = {
_J21: function() {
return this._v11._2_(this._tb1)
},
_K21: function() {
return this._t11._2_(this._ub1)
},
_Va1: function(_y01) {
return _ZM._Vo(_y01, _ZM._Wh(_ZM._Vo(this._wb1, this._Dd1), _ZM._Vo(this._Bd1, this._Cd1)))
},
_Wa1: function(_y01) {
return _y01 * this._xb1
},
_Ob1: function() {
return this._tb1
},
_Pb1: function() {
return this._ub1
},
_4d1: function() {
return this._Uc1
},
_5d1: function() {
var _w21 = this._v11;
var _x21 = this._t11;
var _mS = _w21._2_(this._tb1);
var _nS = _x21._2_(this._ub1);
var _mk = _ZM._6N(_nS, _mS);
var _RO = _w21._3_(this._Uc1);
var _La1 = _ZN(_mk, _RO);
return _La1
},
_Sb1: function() {
var _5S = this._v11.__Y;
var _6S = this._t11.__Y;
return _6S - _5S
},
_Yb1: function() {
return this._Db1
},
_Zb1: function(_m_) {
this._v11._gD(!0);
this._t11._gD(!0);
this._Db1 = _m_
},
__b1: function(_h3) {
this._v11._gD(!0);
this._t11._gD(!0);
this._Bb1 = _h3
},
_0c1: function() {
return this._Bb1
},
_1c1: function(_VZ) {
this._v11._gD(!0);
this._t11._gD(!0);
this._Ab1 = _VZ
},
_2c1: function() {
return this._Ab1
},
_3c1: function(_y01) {
return _y01 * this._xb1
},
_Id1: function(_xc1) {
this._nc1 = _xc1
},
_Jd1: function() {
return this._nc1
},
_Kd1: function(_Ca1) {
this._oc1 = _Ca1
},
_Ld1: function() {
return this._oc1;
},
_ya1: function(data) {
this._e81 = this._v11._LY;
this._f81 = this._t11._LY;
this._Hb1._2N(this._v11._UY._QN);
this._Ib1._2N(this._t11._UY._QN);
this._Jb1 = this._v11._8Z;
this._Kb1 = this._t11._8Z;
this._Lb1 = this._v11._aZ;
this._Mb1 = this._t11._aZ;
var _s91 = this._Jb1,
_t91 = this._Kb1;
var _wX = this._Lb1,
_xX = this._Mb1;
var _J11 = data._G01[this._e81]._I3._u8();
var _u91 = data._G01[this._e81]._kb;
var _v91 = data._H01[this._e81]._xb._u8();
var _5S = data._H01[this._e81]._J3;
var _L11 = data._G01[this._f81]._I3._u8();
var _w91 = data._G01[this._f81]._kb;
var _x91 = data._H01[this._f81]._xb._u8();
var _6S = data._H01[this._f81]._J3;
var _4c1 = new _JN(_u91),
_5c1 = new _JN(_w91);
var _8T = _dO(_4c1, _ZM._6N(this._tb1, this._Hb1));
var _9T = _dO(_5c1, _ZM._6N(this._ub1, this._Ib1));
var _mk = _ZM._6N(_ZM._6N(_ZM._Wh(_L11, _9T), _J11), _8T); {
this._Dd1._2N(_dO(_4c1, this._Vc1));
this._Gd1 = __N(_ZM._Wh(_mk, _8T), this._Dd1);
this._Hd1 = __N(_9T, this._Dd1);
this._7Z = _s91 + _t91 + _wX * this._Gd1 * this._Gd1 + _xX * this._Hd1 * this._Hd1;
if (this._7Z > 0.0) {
this._7Z = 1.0 / this._7Z
}
}
this._Ad1 = 0.0;
this._Gc1 = 0.0;
this._qc1 = 0.0;
if (this._nc1 > 0.0) {
this._Cd1._2N(_dO(_4c1, this._Uc1));
this._Ed1 = __N(_ZM._Wh(_mk, _8T), this._Cd1);
this._Fd1 = __N(_9T, this._Cd1);
var _Mc1 = _s91 + _t91 + _wX * this._Ed1 * this._Ed1 + _xX * this._Fd1 * this._Fd1;
if (_Mc1 > 0.0) {
this._Ad1 = 1.0 / _Mc1;
var _jO = _ZN(_mk, this._Cd1);
var _Bc1 = 2.0 * _eM * this._nc1;
var _mk = 2.0 * this._Ad1 * this._oc1 * _Bc1;
var _eT = this._Ad1 * _Bc1 * _Bc1;
var _K3 = data._ML._x01;
this._qc1 = _K3 * (_mk + _K3 * _eT);
if (this._qc1 > 0.0) {
this._qc1 = 1.0 / this._qc1
}
this._Gc1 = _jO * _K3 * _eT * this._qc1;
this._Ad1 = _Mc1 + this._qc1;
if (this._Ad1 > 0.0) {
this._Ad1 = 1.0 / this._Ad1
}
}
} else {
this._Bd1 = 0.0
}
if (this._Db1) {
this._Nb1 = _wX + _xX;
if (this._Nb1 > 0.0) {
this._Nb1 = 1.0 / this._Nb1
}
} else {
this._Nb1 = 0.0;
this._xb1 = 0.0
}
if (data._ML._C01) {
this._wb1 *= data._ML._z01;
this._Bd1 *= data._ML._z01;
this._xb1 *= data._ML._z01;
var _qV = _ZM._Wh(_ZM._Vo(this._wb1, this._Dd1), _ZM._Vo(this._Bd1, this._Cd1));
var _dd1 = this._wb1 * this._Gd1 + this._Bd1 * this._Ed1 + this._xb1;
var _ed1 = this._wb1 * this._Hd1 + this._Bd1 * this._Fd1 + this._xb1;
_v91._6N(_ZM._Vo(this._Jb1, _qV));
_5S -= this._Lb1 * _dd1;
_x91._Wh(_ZM._Vo(this._Kb1, _qV));
_6S += this._Mb1 * _ed1
} else {
this._wb1 = 0.0;
this._Bd1 = 0.0;
this._xb1 = 0.0
}
data._H01[this._e81]._xb._2N(_v91);
data._H01[this._e81]._J3 = _5S;
data._H01[this._f81]._xb._2N(_x91);
data._H01[this._f81]._J3 = _6S
},
_Q91: function(data) {
var _s91 = this._Jb1,
_t91 = this._Kb1;
var _wX = this._Lb1,
_xX = this._Mb1;
var _v91 = data._H01[this._e81]._xb._u8();
var _5S = data._H01[this._e81]._J3;
var _x91 = data._H01[this._f81]._xb._u8();
var _6S = data._H01[this._f81]._J3; {
var _7c1 = _ZN(this._Cd1, _ZM._6N(_x91, _v91)) + this._Fd1 * _6S - this._Ed1 * _5S;
var _XZ = -this._Ad1 * (_7c1 + this._Gc1 + this._qc1 * this._Bd1);
this._Bd1 += _XZ;
var _qV = _ZM._Vo(_XZ, this._Cd1);
var _dd1 = _XZ * this._Ed1;
var _ed1 = _XZ * this._Fd1;
_v91._6N(_ZM._Vo(_s91, _qV));
_5S -= _wX * _dd1;
_x91._Wh(_ZM._Vo(_t91, _qV));
_6S += _xX * _ed1
} {
var _7c1 = _6S - _5S - this._Bb1;
var _XZ = -this._Nb1 * _7c1;
var _8c1 = this._xb1;
var _9c1 = data._ML._x01 * this._Ab1;
this._xb1 = _uO(this._xb1 + _XZ, -_9c1, _9c1);
_XZ = this._xb1 - _8c1;
_5S -= _wX * _XZ;
_6S += _xX * _XZ
} {
var _7c1 = _ZN(this._Dd1, _ZM._6N(_x91, _v91)) + this._Hd1 * _6S - this._Gd1 * _5S;
var _XZ = -this._7Z * _7c1;
this._wb1 += _XZ;
var _qV = _ZM._Vo(_XZ, this._Dd1);
var _dd1 = _XZ * this._Gd1;
var _ed1 = _XZ * this._Hd1;
_v91._6N(_ZM._Vo(_s91, _qV));
_5S -= _wX * _dd1;
_x91._Wh(_ZM._Vo(_t91, _qV));
_6S += _xX * _ed1
}
data._H01[this._e81]._xb._2N(_v91);
data._H01[this._e81]._J3 = _5S;
data._H01[this._f81]._xb._2N(_x91);
data._H01[this._f81]._J3 = _6S
},
_aa1: function(data) {
var _J11 = data._G01[this._e81]._I3._u8();
var _u91 = data._G01[this._e81]._kb;
var _L11 = data._G01[this._f81]._I3._u8();
var _w91 = data._G01[this._f81]._kb;
var _4c1 = new _JN(_u91),
_5c1 = new _JN(_w91);
var _8T = _dO(_4c1, _ZM._6N(this._tb1, this._Hb1));
var _9T = _dO(_5c1, _ZM._6N(this._ub1, this._Ib1));
var _mk = _ZM._Wh(_ZM._6N(_L11, _J11), _ZM._6N(_9T, _8T));
var _941 = _dO(_4c1, this._Vc1);
var _Md1 = __N(_ZM._Wh(_mk, _8T), _941);
var _Nd1 = __N(_9T, _941);
var _jO = _ZN(_mk, _941);
var _eT = this._Jb1 + this._Kb1 + this._Lb1 * this._Gd1 * this._Gd1 + this._Mb1 * this._Hd1 * this._Hd1;
var _XZ;
if (_eT != 0.0) {
_XZ = -_jO / _eT
} else {
_XZ = 0.0
}
var _qV = _ZM._Vo(_XZ, _941);
var _dd1 = _XZ * _Md1;
var _ed1 = _XZ * _Nd1;
_J11._6N(_ZM._Vo(this._Jb1, _qV));
_u91 -= this._Lb1 * _dd1;
_L11._Wh(_ZM._Vo(this._Kb1, _qV));
_w91 += this._Mb1 * _ed1;
data._G01[this._e81]._I3._2N(_J11);
data._G01[this._e81]._kb = _u91;
data._G01[this._f81]._I3._2N(_L11);
data._G01[this._f81]._kb = _w91;
return _nO(_jO) <= _jM
},
_dN: function(_eN) {
var _xr = _eN || {};
this.parent.prototype._dN.call(this, _xr);
_xr['localAnchorA'] = this._tb1._dN();
_xr['localAnchorB'] = this._ub1._dN();
_xr['localAxisA'] = this._Od1._dN();
_xr['enableMotor'] = this._Db1;
_xr['maxMotorTorque'] = this._Ab1;
_xr['motorSpeed'] = this._Bb1;
_xr['frequencyHz'] = this._nc1;
_xr['dampingRatio'] = this._oc1;
return _xr;
}
};
_eb1._EL(_r11);
function _Pd1() {
this.parent.call(this);
this.type = _r11._3b1;
this._Qd1 = null;
this._Rd1 = null;
this._Ca1 = 1.0;
Object.seal(this)
}
_Pd1.prototype = {
_fN: function(data, _D21, _Ua1) {
this.parent.prototype._fN.call(this, data, _D21, _Ua1);
this._Qd1 = data['joint1'];
this._Rd1 = data['joint2'];
this._Ca1 = data['ratio']
}
};
_Pd1._EL(_Sa1);
function _db1(_kZ) {
this.parent.call(this, _kZ);
this._Sd1 = _kZ._Qd1;
this._Td1 = _kZ._Rd1;
this._Ud1 = this._Sd1._jP();
this._Vd1 = this._Td1._jP();
_9M(this._Ud1 == _r11._1b1 || this._Ud1 == _r11._2b1);
_9M(this._Vd1 == _r11._1b1 || this._Vd1 == _r11._2b1);
var _Wd1, _Xd1;
this._Yd1 = this._Sd1._H21();
this._v11 = this._Sd1._I21();
var _AT = this._v11._MV;
var _u91 = this._v11._UY._kb;
var _Zd1 = this._Yd1._MV;
var __d1 = this._Yd1._UY._kb;
this._tb1 = new _ZM();
this._ub1 = new _ZM();
this._0e1 = new _ZM();
this._1e1 = new _ZM();
this._2e1 = new _ZM();
this._3e1 = new _ZM();
if (this._Ud1 == _r11._1b1) {
var _4e1 = _kZ._Qd1;
this._0e1._2N(_4e1._tb1);
this._tb1._2N(_4e1._ub1);
this._5e1 = _4e1._vb1;
this._2e1.__M();
_Wd1 = _u91 - __d1 - this._5e1
} else {
var _6e1 = _kZ._Qd1;
this._0e1._2N(_6e1._tb1);
this._tb1._2N(_6e1._ub1);
this._5e1 = _6e1._vb1;
this._2e1._2N(_6e1._Uc1);
var _7e1 = this._0e1;
var _mS = _eO(_Zd1._fu, _ZM._Wh(_dO(_AT._fu, this._tb1), _ZM._6N(_AT._mv, _Zd1._mv)));
_Wd1 = _ZN(_ZM._6N(_mS, _7e1), this._2e1)
}
this._8e1 = this._Td1._H21();
this._t11 = this._Td1._I21();
var _CT = this._t11._MV;
var _w91 = this._t11._UY._kb;
var _9e1 = this._8e1._MV;
var _ae1 = this._8e1._UY._kb;
if (this._Vd1 == _r11._1b1) {
var _4e1 = _kZ._Rd1;
this._1e1._2N(_4e1._tb1);
this._ub1._2N(_4e1._ub1);
this._be1 = _4e1._vb1;
this._3e1.__M();
_Xd1 = _w91 - _ae1 - this._be1
} else {
var _6e1 = _kZ._Rd1;
this._1e1._2N(_6e1._tb1);
this._ub1._2N(_6e1._ub1);
this._be1 = _6e1._vb1;
this._3e1._2N(_6e1._Uc1);
var _ce1 = this._1e1;
var _nS = _eO(_9e1._fu, _ZM._Wh(_dO(_CT._fu, this._ub1), _ZM._6N(_CT._mv, _9e1._mv)));
_Xd1 = _ZN(_ZM._6N(_nS, _ce1), this._3e1)
}
this._de1 = _kZ._Ca1;
this._ee1 = _Wd1 + this._de1 * _Xd1;
this._wb1 = 0.0;
this._e81 = this._f81 = this._fe1 = this._ge1 = 0;
this._he1 = new _ZM();
this._ie1 = new _ZM();
this._je1 = new _ZM();
this._ke1 = new _ZM();
this._le1 = this._me1 = this._ne1 = this._oe1 = 0;
this._pe1 = this._qe1 = this._re1 = this._se1 = 0;
this._te1 = new _ZM(),
this._ue1 = new _ZM();
this._ve1 = this._we1 = this._xe1 = this._ye1 = 0;
this._7Z = 0
}
_db1.prototype = {
_J21: function() {
return this._v11._2_(this._tb1)
},
_K21: function() {
return this._t11._2_(this._ub1)
},
_Va1: function(_y01) {
var _qV = _ZM._Vo(this._wb1, this._te1);
return _ZM._Vo(_y01, _qV)
},
_Wa1: function(_y01) {
var _ze1 = this._wb1 * this._ve1;
return _y01 * _ze1
},
_Ae1: function() {
return this._Sd1
},
_Be1: function() {
return this._Td1
},
_Ce1: function(_Ca1) {
_9M(_PM(_Ca1));
this._de1 = _Ca1
},
_De1: function() {
return this._de1
},
_ya1: function(data) {
this._e81 = this._v11._LY;
this._f81 = this._t11._LY;
this._fe1 = this._Yd1._LY;
this._ge1 = this._8e1._LY;
this._he1._2N(this._v11._UY._QN);
this._ie1._2N(this._t11._UY._QN);
this._je1._2N(this._Yd1._UY._QN);
this._ke1._2N(this._8e1._UY._QN);
this._le1 = this._v11._8Z;
this._me1 = this._t11._8Z;
this._ne1 = this._Yd1._8Z;
this._oe1 = this._8e1._8Z;
this._pe1 = this._v11._aZ;
this._qe1 = this._t11._aZ;
this._re1 = this._Yd1._aZ;
this._se1 = this._8e1._aZ;
var _u91 = data._G01[this._e81]._kb;
var _v91 = data._H01[this._e81]._xb._u8();
var _5S = data._H01[this._e81]._J3;
var _w91 = data._G01[this._f81]._kb;
var _x91 = data._H01[this._f81]._xb._u8();
var _6S = data._H01[this._f81]._J3;
var __d1 = data._G01[this._fe1]._kb;
var _Ee1 = data._H01[this._fe1]._xb._u8();
var _Fe1 = data._H01[this._fe1]._J3;
var _ae1 = data._G01[this._ge1]._kb;
var _Ge1 = data._H01[this._ge1]._xb._u8();
var _He1 = data._H01[this._ge1]._J3;
var _4c1 = new _JN(_u91),
_5c1 = new _JN(_w91),
_Ie1 = new _JN(__d1),
_Je1 = new _JN(_ae1);
this._7Z = 0.0;
if (this._Ud1 == _r11._1b1) {
this._te1.__M();
this._ve1 = 1.0;
this._xe1 = 1.0;
this._7Z += this._pe1 + this._re1
} else {
var _vb = _dO(_Ie1, this._2e1);
var _Ke1 = _dO(_Ie1, _ZM._6N(this._0e1, this._je1));
var _8T = _dO(_4c1, _ZM._6N(this._tb1, this._he1));
this._te1._2N(_vb);
this._xe1 = __N(_Ke1, _vb);
this._ve1 = __N(_8T, _vb);
this._7Z += this._ne1 + this._le1 + this._re1 * this._xe1 * this._xe1 + this._pe1 * this._ve1 * this._ve1
}
if (this._Vd1 == _r11._1b1) {
this._ue1.__M();
this._we1 = this._de1;
this._ye1 = this._de1;
this._7Z += this._de1 * this._de1 * (this._qe1 + this._se1)
} else {
var _vb = _dO(_Je1, this._3e1);
var _Le1 = _dO(_Je1, _ZM._6N(this._1e1, this._ke1));
var _9T = _dO(_5c1, _ZM._6N(this._ub1, this._ie1));
this._ue1._2N(_ZM._Vo(this._de1, _vb));
this._ye1 = this._de1 * __N(_Le1, _vb);
this._we1 = this._de1 * __N(_9T, _vb);
this._7Z += this._de1 * this._de1 * (this._oe1 + this._me1) + this._se1 * this._ye1 * this._ye1 + this._qe1 * this._we1 * this._we1
}
this._7Z = this._7Z > 0.0 ? 1.0 / this._7Z: 0.0;
if (data._ML._C01) {
_v91._Wh(_ZM._Vo((this._le1 * this._wb1), this._te1));
_5S += this._pe1 * this._wb1 * this._ve1;
_x91._Wh(_ZM._Vo((this._me1 * this._wb1), this._ue1));
_6S += this._qe1 * this._wb1 * this._we1;
_Ee1._6N(_ZM._Vo((this._ne1 * this._wb1), this._te1));
_Fe1 -= this._re1 * this._wb1 * this._xe1;
_Ge1._6N(_ZM._Vo((this._oe1 * this._wb1), this._ue1));
_He1 -= this._se1 * this._wb1 * this._ye1
} else {
this._wb1 = 0.0
}
data._H01[this._e81]._xb._2N(_v91);
data._H01[this._e81]._J3 = _5S;
data._H01[this._f81]._xb._2N(_x91);
data._H01[this._f81]._J3 = _6S;
data._H01[this._fe1]._xb._2N(_Ee1);
data._H01[this._fe1]._J3 = _Fe1;
data._H01[this._ge1]._xb._2N(_Ge1);
data._H01[this._ge1]._J3 = _He1
},
_Q91: function(data) {
var _v91 = data._H01[this._e81]._xb._u8();
var _5S = data._H01[this._e81]._J3;
var _x91 = data._H01[this._f81]._xb._u8();
var _6S = data._H01[this._f81]._J3;
var _Ee1 = data._H01[this._fe1]._xb._u8();
var _Fe1 = data._H01[this._fe1]._J3;
var _Ge1 = data._H01[this._ge1]._xb._u8();
var _He1 = data._H01[this._ge1]._J3;
var _7c1 = _ZN(this._te1, _ZM._6N(_v91, _Ee1)) + _ZN(this._ue1, _ZM._6N(_x91, _Ge1));
_7c1 += (this._ve1 * _5S - this._xe1 * _Fe1) + (this._we1 * _6S - this._ye1 * _He1);
var _XZ = -this._7Z * _7c1;
this._wb1 += _XZ;
_v91._Wh(_ZM._Vo((this._le1 * _XZ), this._te1));
_5S += this._pe1 * _XZ * this._ve1;
_x91._Wh(_ZM._Vo((this._me1 * _XZ), this._ue1));
_6S += this._qe1 * _XZ * this._we1;
_Ee1._6N(_ZM._Vo((this._ne1 * _XZ), this._te1));
_Fe1 -= this._re1 * _XZ * this._xe1;
_Ge1._6N(_ZM._Vo((this._oe1 * _XZ), this._ue1));
_He1 -= this._se1 * _XZ * this._ye1;
data._H01[this._e81]._xb._2N(_v91);
data._H01[this._e81]._J3 = _5S;
data._H01[this._f81]._xb._2N(_x91);
data._H01[this._f81]._J3 = _6S;
data._H01[this._fe1]._xb._2N(_Ee1);
data._H01[this._fe1]._J3 = _Fe1;
data._H01[this._ge1]._xb._2N(_Ge1);
data._H01[this._ge1]._J3 = _He1;
},
_aa1: function(data) {
var _J11 = data._G01[this._e81]._I3._u8();
var _u91 = data._G01[this._e81]._kb;
var _L11 = data._G01[this._f81]._I3._u8();
var _w91 = data._G01[this._f81]._kb;
var _Me1 = data._G01[this._fe1]._I3._u8();
var __d1 = data._G01[this._fe1]._kb;
var _Ne1 = data._G01[this._ge1]._I3._u8();
var _ae1 = data._G01[this._ge1]._kb;
var _4c1 = new _JN(_u91),
_5c1 = new _JN(_w91),
_Ie1 = new _JN(__d1),
_Je1 = new _JN(_ae1);
var _kd1 = 0.0;
var _Wd1, _Xd1;
var _Oe1 = new _ZM(),
_Pe1 = new _ZM();
var _Qe1, _Re1, _Se1, _Te1;
var _eP = 0.0;
if (this._Ud1 == _r11._1b1) {
_Oe1.__M();
_Qe1 = 1.0;
_Se1 = 1.0;
_eP += this._pe1 + this._re1;
_Wd1 = _u91 - __d1 - this._5e1
} else {
var _vb = _dO(_Ie1, this._2e1);
var _Ke1 = _dO(_Ie1, _ZM._6N(this._0e1, this._je1));
var _8T = _dO(_4c1, _ZM._6N(this._tb1, this._he1));
_Oe1._2N(_vb);
_Se1 = __N(_Ke1, _vb);
_Qe1 = __N(_8T, _vb);
_eP += this._ne1 + this._le1 + this._re1 * _Se1 * _Se1 + this._pe1 * _Qe1 * _Qe1;
var _7e1 = _ZM._6N(this._0e1, this._je1);
var _mS = _eO(_Ie1, _ZM._Wh(_8T, _ZM._6N(_J11, _Me1)));
_Wd1 = _ZN(_ZM._6N(_mS, _7e1), this._2e1)
}
if (this._Vd1 == _r11._1b1) {
_Pe1.__M();
_Re1 = this._de1;
_Te1 = this._de1;
_eP += this._de1 * this._de1 * (this._qe1 + this._se1);
_Xd1 = _w91 - _ae1 - this._be1
} else {
var _vb = _dO(_Je1, this._3e1);
var _Le1 = _dO(_Je1, _ZM._6N(this._1e1, this._ke1));
var _9T = _dO(_5c1, _ZM._6N(this._ub1, this._ie1));
_Pe1._2N(_ZM._Vo(this._de1, _vb));
_Te1 = this._de1 * __N(_Le1, _vb);
_Re1 = this._de1 * __N(_9T, _vb);
_eP += this._de1 * this._de1 * (this._oe1 + this._me1) + this._se1 * _Te1 * _Te1 + this._qe1 * _Re1 * _Re1;
var _ce1 = _ZM._6N(this._1e1, this._ke1);
var _nS = _eO(_Je1, _ZM._Wh(_9T, _ZM._6N(_L11, _Ne1)));
_Xd1 = _ZN(_ZM._6N(_nS, _ce1), this._3e1)
}
var _jO = (_Wd1 + this._de1 * _Xd1) - this._ee1;
var _XZ = 0.0;
if (_eP > 0.0) {
_XZ = -_jO / _eP
}
_J11._Wh(_ZM._Vo(this._le1, _ZM._Vo(_XZ, _Oe1)));
_u91 += this._pe1 * _XZ * _Qe1;
_L11._Wh(_ZM._Vo(this._me1, _ZM._Vo(_XZ, _Pe1)));
_w91 += this._qe1 * _XZ * _Re1;
_Me1._6N(_ZM._Vo(this._ne1, _ZM._Vo(_XZ, _Oe1)));
__d1 -= this._re1 * _XZ * _Se1;
_Ne1._6N(_ZM._Vo(this._oe1, _ZM._Vo(_XZ, _Pe1)));
_ae1 -= this._se1 * _XZ * _Te1;
data._G01[this._e81]._I3._2N(_J11);
data._G01[this._e81]._kb = _u91;
data._G01[this._f81]._I3._2N(_L11);
data._G01[this._f81]._kb = _w91;
data._G01[this._fe1]._I3._2N(_Me1);
data._G01[this._fe1]._kb = __d1;
data._G01[this._ge1]._I3._2N(_Ne1);
data._G01[this._ge1]._kb = _ae1;
return _kd1 < _jM
},
_dN: function(_eN) {
var _xr = _eN || {};
this.parent.prototype._dN.call(this, _xr);
_xr['joint1'] = this._Sd1._Ue1;
_xr['joint2'] = this._Td1._Ue1;
_xr['ratio'] = this._de1;
return _xr
}
};
_db1._EL(_r11);
function _Ve1() {
this.parent.call(this);
this.type = _r11._R21;
this._We1 = new _ZM();
this._Xe1 = 0.0;
this._ic1 = 1.0;
this._od1 = 1.0;
this._Ye1 = 0.3;
Object.seal(this)
}
_Ve1.prototype = {
_zT: function(_w21, _x21) {
this._x11 = _w21;
this._y11 = _x21;
var _Ze1 = this._y11._JC();
this._We1._2N(this._x11._5_(_Ze1));
var __e1 = this._x11._KN();
var _0f1 = this._y11._KN();
this._Xe1 = _0f1 - __e1
},
_fN: function(data, _D21, _Ua1) {
this.parent.prototype._fN.call(this, data, _D21, _Ua1);
this._We1._fN(data['linearOffset']);
this._Xe1 = data['angularOffset'];
this._ic1 = data['maxForce'];
this._od1 = data['maxTorque'];
this._Ye1 = data['correctionFactor']
}
};
_Ve1._EL(_Sa1);
function _ib1(_kZ) {
this.parent.call(this, _kZ);
this._1f1 = _kZ._We1._u8();
this._2f1 = _kZ._Xe1;
this._pd1 = new _ZM();
this._qd1 = 0.0;
this._mc1 = _kZ._ic1;
this._rd1 = _kZ._od1;
this._3f1 = _kZ._Ye1;
this._e81 = 0;
this._f81 = 0;
this._Fb1 = new _ZM();
this._Gb1 = new _ZM();
this._Hb1 = new _ZM();
this._Ib1 = new _ZM();
this._4f1 = new _ZM();
this._5f1 = 0;
this._Jb1 = 0;
this._Kb1 = 0;
this._Lb1 = 0;
this._Mb1 = 0;
this._sd1 = new _jN();
this._td1 = 0
}
_ib1.prototype = {
_J21: function() {
return this._v11._JC()
},
_K21: function() {
return this._t11._JC()
},
_Va1: function(_y01) {
return _ZM._Vo(_y01, this._pd1)
},
_Wa1: function(_y01) {
return _y01 * this._qd1
},
_6f1: function(_We1) {
if (_We1._f3 != this._1f1._f3 || _We1._g3 != this._1f1._g3) {
this._v11._gD(!0);
this._t11._gD(!0);
this._1f1._2N(_We1)
}
},
_T21: function() {
return this._1f1
},
_7f1: function(_Xe1) {
if (_Xe1 != this._2f1) {
this._v11._gD(!0);
this._t11._gD(!0);
this._2f1 = _Xe1
}
},
_8f1: function() {
return this._2f1
},
_uc1: function(_RZ) {
_9M(_PM(_RZ) && _RZ >= 0.0);
this._mc1 = _RZ
},
_vc1: function() {
return this._mc1
},
_ud1: function(_VZ) {
_9M(_PM(_VZ) && _VZ >= 0.0);
this._rd1 = _VZ
},
_vd1: function() {
return this._rd1
},
_9f1: function(_af1) {
_9M(_PM(_af1) && 0.0 <= _af1 && _af1 <= 1.0);
this._3f1 = _af1
},
_bf1: function() {
return this._3f1
},
_ya1: function(data) {
this._e81 = this._v11._LY;
this._f81 = this._t11._LY;
this._Hb1._2N(this._v11._UY._QN);
this._Ib1._2N(this._t11._UY._QN);
this._Jb1 = this._v11._8Z;
this._Kb1 = this._t11._8Z;
this._Lb1 = this._v11._aZ;
this._Mb1 = this._t11._aZ;
var _J11 = data._G01[this._e81]._I3._u8();
var _u91 = data._G01[this._e81]._kb;
var _v91 = data._H01[this._e81]._xb._u8();
var _5S = data._H01[this._e81]._J3;
var _L11 = data._G01[this._f81]._I3._u8();
var _w91 = data._G01[this._f81]._kb;
var _x91 = data._H01[this._f81]._xb._u8();
var _6S = data._H01[this._f81]._J3;
var _4c1 = new _JN(_u91),
_5c1 = new _JN(_w91);
this._Fb1._2N(_dO(_4c1, this._Hb1._3N()));
this._Gb1._2N(_dO(_5c1, this._Ib1._3N()));
var _s91 = this._Jb1,
_t91 = this._Kb1;
var _wX = this._Lb1,
_xX = this._Mb1;
var _891 = new _jN();
_891._yF._f3 = _s91 + _t91 + _wX * this._Fb1._g3 * this._Fb1._g3 + _xX * this._Gb1._g3 * this._Gb1._g3;
_891._yF._g3 = -_wX * this._Fb1._f3 * this._Fb1._g3 - _xX * this._Gb1._f3 * this._Gb1._g3;
_891._mN._f3 = _891._yF._g3;
_891._mN._g3 = _s91 + _t91 + _wX * this._Fb1._f3 * this._Fb1._f3 + _xX * this._Gb1._f3 * this._Gb1._f3;
this._sd1._2N(_891._oN());
this._td1 = _wX + _xX;
if (this._td1 > 0.0) {
this._td1 = 1.0 / this._td1
}
this._4f1._f3 = _L11._f3 + this._Gb1._f3 - _J11._f3 - this._Fb1._f3 - (_4c1._I3 * this._1f1._f3 - _4c1._9q * this._1f1._g3);
this._4f1._g3 = _L11._g3 + this._Gb1._g3 - _J11._g3 - this._Fb1._g3 - (_4c1._9q * this._1f1._f3 + _4c1._I3 * this._1f1._g3);
this._5f1 = _w91 - _u91 - this._2f1;
if (data._ML._C01) {
this._pd1._Vo(data._ML._z01);
this._qd1 *= data._ML._z01;
var _qV = new _ZM(this._pd1._f3, this._pd1._g3);
_v91._6N(_ZM._Vo(_s91, _qV));
_5S -= _wX * (__N(this._Fb1, _qV) + this._qd1);
_x91._Wh(_ZM._Vo(_t91, _qV));
_6S += _xX * (__N(this._Gb1, _qV) + this._qd1)
} else {
this._pd1.__M();
this._qd1 = 0.0
}
data._H01[this._e81]._xb._2N(_v91);
data._H01[this._e81]._J3 = _5S;
data._H01[this._f81]._xb._2N(_x91);
data._H01[this._f81]._J3 = _6S
},
_Q91: function(data) {
var _v91 = data._H01[this._e81]._xb._u8();
var _5S = data._H01[this._e81]._J3;
var _x91 = data._H01[this._f81]._xb._u8();
var _6S = data._H01[this._f81]._J3;
var _s91 = this._Jb1,
_t91 = this._Kb1;
var _wX = this._Lb1,
_xX = this._Mb1;
var _K3 = data._ML._x01;
var _cf1 = data._ML._y01; {
var _7c1 = _6S - _5S + _cf1 * this._3f1 * this._5f1;
var _XZ = -this._td1 * _7c1;
var _8c1 = this._qd1;
var _9c1 = _K3 * this._rd1;
this._qd1 = _uO(this._qd1 + _XZ, -_9c1, _9c1);
_XZ = this._qd1 - _8c1;
_5S -= _wX * _XZ;
_6S += _xX * _XZ
} {
var _7c1 = new _ZM(_x91._f3 + ( - _6S * this._Gb1._f3) - _v91._f3 - ( - _5S * this._Fb1._f3) + _cf1 * this._3f1 * this._4f1._f3, _x91._g3 + (_6S * this._Gb1._g3) - _v91._g3 - (_5S * this._Fb1._g3) + _cf1 * this._3f1 * this._4f1._g3);
var _XZ = _2O(this._sd1, _7c1)._3N();
var _8c1 = this._pd1._u8();
this._pd1._Wh(_XZ);
var _9c1 = _K3 * this._mc1;
if (this._pd1._8N() > _9c1 * _9c1) {
this._pd1._9N();
this._pd1._Vo(_9c1)
}
_XZ._2N(_ZM._6N(this._pd1, _8c1));
_v91._6N(_ZM._Vo(_s91, _XZ));
_5S -= _wX * __N(this._Fb1, _XZ);
_x91._Wh(_ZM._Vo(_t91, _XZ));
_6S += _xX * __N(this._Gb1, _XZ)
}
data._H01[this._e81]._xb._2N(_v91);
data._H01[this._e81]._J3 = _5S;
data._H01[this._f81]._xb._2N(_x91);
data._H01[this._f81]._J3 = _6S
},
_aa1: function(data) {
return ! 0
},
_dN: function(_eN) {
var _xr = _eN || {};
this.parent.prototype._dN.call(this, _xr);
_xr['linearOffset'] = this._1f1._dN();
_xr['angularOffset'] = this._2f1;
_xr['maxForce'] = this._mc1;
_xr['maxTorque'] = this._rd1;
_xr['correctionFactor'] = this._3f1;
return _xr
}
};
_ib1._EL(_r11);
var _df1 = 2.0;
function _ef1() {
this.parent.call(this);
this.type = _r11._M21;
this._ff1 = new _ZM( - 1.0, 1.0);
this._gf1 = new _ZM(1.0, 1.0);
this._kb1 = new _ZM( - 1.0, 0.0);
this._lb1 = new _ZM(1.0, 0.0);
this._hf1 = 0.0;
this._if1 = 0.0;
this._Ca1 = 1.0;
this._z11 = !0;
Object.seal(this)
}
_ef1.prototype = {
_zT: function(_w21, _x21, _jf1, _kf1, _lf1, _mf1, _T9) {
this._x11 = _w21;
this._y11 = _x21;
this._ff1._2N(_jf1);
this._gf1._2N(_kf1);
this._kb1._2N(this._x11._5_(_lf1));
this._lb1._2N(this._y11._5_(_mf1));
var _nf1 = _ZM._6N(_lf1, _jf1);
this._hf1 = _nf1._7N();
var _of1 = _ZM._6N(_mf1, _kf1);
this._if1 = _of1._7N();
this._Ca1 = _T9;
_9M(this._Ca1 > _dM)
},
_fN: function(data, _D21, _Ua1) {
this.parent.prototype._fN.call(this, data, _D21, _Ua1);
this._ff1._fN(data['groundAnchorA']);
this._gf1._fN(data['groundAnchorB']);
this._kb1._fN(data['localAnchorA']);
this._lb1._fN(data['localAnchorB']);
this._hf1 = data['lengthA'];
this._if1 = data['lengthB'];
this._Ca1 = data['ratio']
}
};
_ef1._EL(_Sa1);
function _cb1(_kZ) {
this.parent.call(this, _kZ);
this._e81 = 0;
this._f81 = 0;
this._pf1 = new _ZM();
this._qf1 = new _ZM();
this._Fb1 = new _ZM();
this._Gb1 = new _ZM();
this._Hb1 = new _ZM();
this._Ib1 = new _ZM();
this._Jb1 = 0;
this._Kb1 = 0;
this._Lb1 = 0;
this._Mb1 = 0;
this._7Z = 0;
this._rf1 = _kZ._ff1._u8();
this._sf1 = _kZ._gf1._u8();
this._tb1 = _kZ._kb1._u8();
this._ub1 = _kZ._lb1._u8();
this._tf1 = _kZ._hf1;
this._uf1 = _kZ._if1;
_9M(_kZ._Ca1 != 0.0);
this._de1 = _kZ._Ca1;
this._ee1 = _kZ._hf1 + this._de1 * _kZ._if1;
this._wb1 = 0.0
}
_cb1.prototype = {
_J21: function() {
return this._v11._2_(this._tb1)
},
_K21: function() {
return this._t11._2_(this._ub1);
},
_Va1: function(_y01) {
var _qV = _ZM._Vo(this._wb1, this._qf1);
return _ZM._Vo(_y01, _qV)
},
_Wa1: function(_y01) {
return 0.0
},
_O21: function() {
return this._rf1
},
_P21: function() {
return this._sf1
},
_vf1: function() {
return this._tf1
},
_wf1: function() {
return this._uf1
},
_De1: function() {
return this._de1
},
_xf1: function() {
var _mv = this._v11._2_(this._tb1);
var _9q = this._rf1;
var _mk = _ZM._6N(_mv, _9q);
return _mk._7N()
},
_yf1: function() {
var _mv = this._t11._2_(this._ub1);
var _9q = this._sf1;
var _mk = _ZM._6N(_mv, _9q);
return _mk._7N();
},
_IR: function(_JR) {
this._rf1._6N(_JR);
this._sf1._6N(_JR)
},
_ya1: function(data) {
this._e81 = this._v11._LY;
this._f81 = this._t11._LY;
this._Hb1._2N(this._v11._UY._QN);
this._Ib1._2N(this._t11._UY._QN);
this._Jb1 = this._v11._8Z;
this._Kb1 = this._t11._8Z;
this._Lb1 = this._v11._aZ;
this._Mb1 = this._t11._aZ;
var _J11 = data._G01[this._e81]._I3._u8();
var _u91 = data._G01[this._e81]._kb;
var _v91 = data._H01[this._e81]._xb._u8();
var _5S = data._H01[this._e81]._J3;
var _L11 = data._G01[this._f81]._I3._u8();
var _w91 = data._G01[this._f81]._kb;
var _x91 = data._H01[this._f81]._xb._u8();
var _6S = data._H01[this._f81]._J3;
var _4c1 = new _JN(_u91),
_5c1 = new _JN(_w91);
this._Fb1._2N(_dO(_4c1, _ZM._6N(this._tb1, this._Hb1)));
this._Gb1._2N(_dO(_5c1, _ZM._6N(this._ub1, this._Ib1)));
this._pf1._2N(_ZM._Wh(_J11, _ZM._6N(this._Fb1, this._rf1)));
this._qf1._2N(_ZM._Wh(_L11, _ZM._6N(this._Gb1, this._sf1)));
var _hf1 = this._pf1._7N();
var _if1 = this._qf1._7N();
if (_hf1 > 10.0 * _jM) {
this._pf1._Vo(1.0 / _hf1)
} else {
this._pf1.__M()
}
if (_if1 > 10.0 * _jM) {
this._qf1._Vo(1.0 / _if1)
} else {
this._qf1.__M();
}
var _zf1 = __N(this._Fb1, this._pf1);
var _Af1 = __N(this._Gb1, this._qf1);
var _s91 = this._Jb1 + this._Lb1 * _zf1 * _zf1;
var _t91 = this._Kb1 + this._Mb1 * _Af1 * _Af1;
this._7Z = _s91 + this._de1 * this._de1 * _t91;
if (this._7Z > 0.0) {
this._7Z = 1.0 / this._7Z
}
if (data._ML._C01) {
this._wb1 *= data._ML._z01;
var _Bf1 = _ZM._Vo( - (this._wb1), this._pf1);
var _Cf1 = _ZM._Vo(( - this._de1 * this._wb1), this._qf1);
_v91._Wh(_ZM._Vo(this._Jb1, _Bf1));
_5S += this._Lb1 * __N(this._Fb1, _Bf1);
_x91._Wh(_ZM._Vo(this._Kb1, _Cf1));
_6S += this._Mb1 * __N(this._Gb1, _Cf1)
} else {
this._wb1 = 0.0
}
data._H01[this._e81]._xb._2N(_v91);
data._H01[this._e81]._J3 = _5S;
data._H01[this._f81]._xb._2N(_x91);
data._H01[this._f81]._J3 = _6S
},
_Q91: function(data) {
var _v91 = data._H01[this._e81]._xb._u8();
var _5S = data._H01[this._e81]._J3;
var _x91 = data._H01[this._f81]._xb._u8();
var _6S = data._H01[this._f81]._J3;
var _Nc1 = _ZM._Wh(_v91, _1O(_5S, this._Fb1));
var _Oc1 = _ZM._Wh(_x91, _1O(_6S, this._Gb1));
var _7c1 = -_ZN(this._pf1, _Nc1) - this._de1 * _ZN(this._qf1, _Oc1);
var _XZ = -this._7Z * _7c1;
this._wb1 += _XZ;
var _Bf1 = _ZM._Vo( - _XZ, this._pf1);
var _Cf1 = _ZM._Vo( - this._de1, _ZM._Vo(_XZ, this._qf1));
_v91._Wh(_ZM._Vo(this._Jb1, _Bf1));
_5S += this._Lb1 * __N(this._Fb1, _Bf1);
_x91._Wh(_ZM._Vo(this._Kb1, _Cf1));
_6S += this._Mb1 * __N(this._Gb1, _Cf1);
data._H01[this._e81]._xb._2N(_v91);
data._H01[this._e81]._J3 = _5S;
data._H01[this._f81]._xb._2N(_x91);
data._H01[this._f81]._J3 = _6S
},
_aa1: function(data) {
var _J11 = data._G01[this._e81]._I3._u8();
var _u91 = data._G01[this._e81]._kb;
var _L11 = data._G01[this._f81]._I3._u8();
var _w91 = data._G01[this._f81]._kb;
var _4c1 = new _JN(_u91),
_5c1 = new _JN(_w91);
var _8T = _dO(_4c1, _ZM._6N(this._tb1, this._Hb1));
var _9T = _dO(_5c1, _ZM._6N(this._ub1, this._Ib1));
var _Df1 = _ZM._Wh(_J11, _ZM._6N(_8T, this._rf1));
var _Ef1 = _ZM._Wh(_L11, _ZM._6N(_9T, this._sf1));
var _hf1 = _Df1._7N();
var _if1 = _Ef1._7N();
if (_hf1 > 10.0 * _jM) {
_Df1._Vo(1.0 / _hf1)
} else {
_Df1.__M()
}
if (_if1 > 10.0 * _jM) {
_Ef1._Vo(1.0 / _if1)
} else {
_Ef1.__M()
}
var _zf1 = __N(_8T, _Df1);
var _Af1 = __N(_9T, _Ef1);
var _s91 = this._Jb1 + this._Lb1 * _zf1 * _zf1;
var _t91 = this._Kb1 + this._Mb1 * _Af1 * _Af1;
var _eP = _s91 + this._de1 * this._de1 * _t91;
if (_eP > 0.0) {
_eP = 1.0 / _eP
}
var _jO = this._ee1 - _hf1 - this._de1 * _if1;
var _kd1 = _nO(_jO);
var _XZ = -_eP * _jO;
var _Bf1 = _ZM._Vo( - _XZ, _Df1);
var _Cf1 = _ZM._Vo( - this._de1, _ZM._Vo(_XZ, _Ef1));
_J11._Wh(_ZM._Vo(this._Jb1, _Bf1));
_u91 += this._Lb1 * __N(_8T, _Bf1);
_L11._Wh(_ZM._Vo(this._Kb1, _Cf1));
_w91 += this._Mb1 * __N(_9T, _Cf1);
data._G01[this._e81]._I3._2N(_J11);
data._G01[this._e81]._kb = _u91;
data._G01[this._f81]._I3._2N(_L11);
data._G01[this._f81]._kb = _w91;
return _kd1 < _jM
},
_dN: function(_eN) {
var _xr = _eN || {};
this.parent.prototype._dN.call(this, _xr);
_xr['groundAnchorA'] = this._rf1._dN();
_xr['groundAnchorB'] = this._sf1._dN();
_xr['localAnchorA'] = this._tb1._dN();
_xr['localAnchorB'] = this._ub1._dN();
_xr['lengthA'] = this._tf1;
_xr['lengthB'] = this._uf1;
_xr['ratio'] = this._de1;
return _xr
}
};
_cb1._EL(_r11);
function _Ff1() {
this.parent.call(this);
this.type = _r11._7b1;
this._kb1 = new _ZM( - 1.0, 0.0);
this._lb1 = new _ZM(1.0, 0.0);
this._Gf1 = 0.0;
Object.seal(this)
}
_Ff1.prototype = {
_fN: function(data, _D21, _Ua1) {
this.parent.prototype._fN.call(this, data, _D21, _Ua1);
this._kb1._fN(data['localAnchorA']);
this._lb1._fN(data['localAnchorB']);
this._Gf1 = data['maxLength']
}
};
_Ff1._EL(_Sa1);
function _hb1(_kZ) {
this.parent.call(this, _kZ);
this._tb1 = _kZ._kb1._u8();
this._ub1 = _kZ._lb1._u8();
this._Hf1 = _kZ._Gf1;
this._7Z = 0.0;
this._wb1 = 0.0;
this._If1 = _r11._Ya1;
this._Fc1 = 0.0;
this._e81 = 0;
this._f81 = 0;
this._Hc1 = new _ZM();
this._Fb1 = new _ZM();
this._Gb1 = new _ZM();
this._Hb1 = new _ZM();
this._Ib1 = new _ZM();
this._Jb1 = 0;
this._Kb1 = 0;
this._Lb1 = 0;
this._Mb1 = 0
}
_hb1.prototype = {
_J21: function() {
return this._v11._2_(this._tb1)
},
_K21: function() {
return this._t11._2_(this._ub1)
},
_Va1: function(_y01) {
var _BX = _ZM._Vo((_y01 * this._wb1), this._Hc1);
return _BX
},
_Wa1: function(_y01) {
return 0.0
},
_Ob1: function() {
return this._tb1
},
_Pb1: function() {
return this._ub1
},
_Jf1: function(length) {
this._Hf1 = length
},
_Kf1: function() {
return this._Hf1
},
_Lf1: function() {
return this._If1
},
_ya1: function(data) {
this._e81 = this._v11._LY;
this._f81 = this._t11._LY;
this._Hb1._2N(this._v11._UY._QN);
this._Ib1._2N(this._t11._UY._QN);
this._Jb1 = this._v11._8Z;
this._Kb1 = this._t11._8Z;
this._Lb1 = this._v11._aZ;
this._Mb1 = this._t11._aZ;
var _J11 = data._G01[this._e81]._I3._u8();
var _u91 = data._G01[this._e81]._kb;
var _v91 = data._H01[this._e81]._xb._u8();
var _5S = data._H01[this._e81]._J3;
var _L11 = data._G01[this._f81]._I3._u8();
var _w91 = data._G01[this._f81]._kb;
var _x91 = data._H01[this._f81]._xb._u8();
var _6S = data._H01[this._f81]._J3;
var _4c1 = new _JN(_u91),
_5c1 = new _JN(_w91);
this._Fb1._2N(_dO(_4c1, _ZM._6N(this._tb1, this._Hb1)));
this._Gb1._2N(_dO(_5c1, _ZM._6N(this._ub1, this._Ib1)));
this._Hc1._2N(_ZM._6N(_ZM._6N(_ZM._Wh(_L11, this._Gb1), _J11), this._Fb1));
this._Fc1 = this._Hc1._7N();
var _jO = this._Fc1 - this._Hf1;
if (_jO > 0.0) {
this._If1 = _r11.__a1
} else {
this._If1 = _r11._Ya1
}
if (this._Fc1 > _jM) {
this._Hc1._Vo(1.0 / this._Fc1)
} else {
this._Hc1.__M();
this._7Z = 0.0;
this._wb1 = 0.0;
return
}
var _Mf1 = __N(this._Fb1, this._Hc1);
var _Nf1 = __N(this._Gb1, this._Hc1);
var _Mc1 = this._Jb1 + this._Lb1 * _Mf1 * _Mf1 + this._Kb1 + this._Mb1 * _Nf1 * _Nf1;
this._7Z = _Mc1 != 0.0 ? 1.0 / _Mc1: 0.0;
if (data._ML._C01) {
this._wb1 *= data._ML._z01;
var _qV = _ZM._Vo(this._wb1, this._Hc1);
_v91._6N(_ZM._Vo(this._Jb1, _qV));
_5S -= this._Lb1 * __N(this._Fb1, _qV);
_x91._Wh(_ZM._Vo(this._Kb1, _qV));
_6S += this._Mb1 * __N(this._Gb1, _qV)
} else {
this._wb1 = 0.0
}
data._H01[this._e81]._xb._2N(_v91);
data._H01[this._e81]._J3 = _5S;
data._H01[this._f81]._xb._2N(_x91);
data._H01[this._f81]._J3 = _6S
},
_Q91: function(data) {
var _v91 = data._H01[this._e81]._xb._u8();
var _5S = data._H01[this._e81]._J3;
var _x91 = data._H01[this._f81]._xb._u8();
var _6S = data._H01[this._f81]._J3;
var _Nc1 = _ZM._Wh(_v91, _1O(_5S, this._Fb1));
var _Oc1 = _ZM._Wh(_x91, _1O(_6S, this._Gb1));
var _jO = this._Fc1 - this._Hf1;
var _7c1 = _ZN(this._Hc1, _ZM._6N(_Oc1, _Nc1));
if (_jO < 0.0) {
_7c1 += data._ML._y01 * _jO
}
var _XZ = -this._7Z * _7c1;
var _8c1 = this._wb1;
this._wb1 = _qO(0.0, this._wb1 + _XZ);
_XZ = this._wb1 - _8c1;
var _qV = _ZM._Vo(_XZ, this._Hc1);
_v91._6N(_ZM._Vo(this._Jb1, _qV));
_5S -= this._Lb1 * __N(this._Fb1, _qV);
_x91._Wh(_ZM._Vo(this._Kb1, _qV));
_6S += this._Mb1 * __N(this._Gb1, _qV);
data._H01[this._e81]._xb._2N(_v91);
data._H01[this._e81]._J3 = _5S;
data._H01[this._f81]._xb._2N(_x91);
data._H01[this._f81]._J3 = _6S
},
_aa1: function(data) {
var _J11 = data._G01[this._e81]._I3._u8();
var _u91 = data._G01[this._e81]._kb;
var _L11 = data._G01[this._f81]._I3._u8();
var _w91 = data._G01[this._f81]._kb;
var _4c1 = new _JN(_u91),
_5c1 = new _JN(_w91);
var _8T = _dO(_4c1, _ZM._6N(this._tb1, this._Hb1));
var _9T = _dO(_5c1, _ZM._6N(this._ub1, this._Ib1));
var _vb = _ZM._6N(_ZM._6N(_ZM._Wh(_L11, _9T), _J11), _8T);
var length = _vb._9N();
var _jO = length - this._Hf1;
_jO = _uO(_jO, 0.0, _pM);
var _XZ = -this._7Z * _jO;
var _qV = _ZM._Vo(_XZ, _vb);
_J11._6N(_ZM._Vo(this._Jb1, _qV));
_u91 -= this._Lb1 * __N(_8T, _qV);
_L11._Wh(_ZM._Vo(this._Kb1, _qV));
_w91 += this._Mb1 * __N(_9T, _qV);
data._G01[this._e81]._I3._2N(_J11);
data._G01[this._e81]._kb = _u91;
data._G01[this._f81]._I3._2N(_L11);
data._G01[this._f81]._kb = _w91;
return length - this._Hf1 < _jM
},
_dN: function(_eN) {
var _xr = _eN || {};
this.parent.prototype._dN.call(this, _xr);
_xr['localAnchorA'] = this._tb1._dN();
_xr['localAnchorB'] = this._ub1._dN();
_xr['maxLength'] = this._Hf1;
return _xr
}
};
_hb1._EL(_r11);
var _Of1 = Math.exp;
function _Pf1() {
this._rb = null;
this._Ea = 0;
this._Qf1 = null;
this._N01 = new _ZM();
this._131 = 0.1;
this._Rf1 = 0.9;
this._Sf1 = 0.1
}
function _Tf1() {
this._3Q = 0;
this._Uf1 = null;
this._Vf1 = null;
this._Wf1 = null;
this._Xf1 = null;
this._Yf1 = null;
this._Zf1 = null;
this.__f1 = 0;
this._Z01 = new _ZM();
this._0g1 = 1.0;
this._1g1 = 0.1
}
_Tf1.prototype = {
_zT: function(_kZ) {
_9M(_kZ._Ea >= 3);
this._3Q = _kZ._Ea;
this._Uf1 = new Array(this._3Q);
this._Vf1 = new Array(this._3Q);
this._Wf1 = new Array(this._3Q);
this._Xf1 = new Array(this._3Q);
for (var _H3 = 0; _H3 < this._3Q; ++_H3) {
this._Uf1[_H3] = _kZ._rb[_H3]._u8();
this._Vf1[_H3] = _kZ._rb[_H3]._u8();
this._Wf1[_H3] = new _ZM();
var _F9 = _kZ._Qf1[_H3];
if (_F9 > 0.0) {
this._Xf1[_H3] = 1.0 / _F9;
} else {
this._Xf1[_H3] = 0.0
}
}
var _CU = this._3Q - 1;
var _2g1 = this._3Q - 2;
this._Yf1 = new Array(_CU);
this._Zf1 = new Array(_2g1);
for (var _H3 = 0; _H3 < _CU; ++_H3) {
var _TO = this._Uf1[_H3];
var _UO = this._Uf1[_H3 + 1];
this._Yf1[_H3] = _4O(_TO, _UO)
}
for (var _H3 = 0; _H3 < _2g1; ++_H3) {
var _TO = this._Uf1[_H3];
var _UO = this._Uf1[_H3 + 1];
var _XQ = this._Uf1[_H3 + 2];
var _NP = _ZM._6N(_UO, _TO);
var _F61 = _ZM._6N(_XQ, _UO);
var _kb = __N(_NP, _F61);
var _W9 = _ZN(_NP, _F61);
this._Zf1[_H3] = _XM(_kb, _W9)
}
this._Z01 = _kZ._N01._u8();
this.__f1 = _kZ._131;
this._0g1 = _kZ._Rf1;
this._1g1 = _kZ._Sf1
},
_A11: function(_K3, _3S) {
if (_K3 == 0.0) {
return
}
var _mk = _Of1( - _K3 * this.__f1);
for (var _H3 = 0; _H3 < this._3Q; ++_H3) {
this._Vf1[_H3]._2N(this._Uf1[_H3]);
if (this._Xf1[_H3] > 0.0) {
this._Wf1[_H3]._Wh(_ZM._Vo(_K3, this._Z01))
}
this._Wf1[_H3]._Vo(_mk);
this._Uf1[_H3]._Wh(_ZM._Vo(_K3, this._Wf1[_H3]))
}
for (var _H3 = 0; _H3 < _3S; ++_H3) {
this._3g1();
this._4g1();
this._3g1()
}
var _cf1 = 1.0 / _K3;
for (var _H3 = 0; _H3 < this._3Q; ++_H3) {
this._Wf1[_H3] = _ZM._Vo(_cf1, _ZM._6N(this._Uf1[_H3], this._Vf1[_H3]))
}
},
_LP: function() {
return this._3Q
},
_5g1: function() {
return this._Uf1
},
_6b: function(_6g1) {
var _I3 = new _CO(0.4, 0.5, 0.7);
for (var _H3 = 0; _H3 < this._3Q - 1; ++_H3) {
_6g1._SO(this._Uf1[_H3], this._Uf1[_H3 + 1], _I3)
}
},
_7g1: function(_0b) {
var _2g1 = this._3Q - 2;
for (var _H3 = 0; _H3 < _2g1; ++_H3) {
this._Zf1[_H3] = _0b
}
},
_3g1: function() {
var _CU = this._3Q - 1;
for (var _H3 = 0; _H3 < _CU; ++_H3) {
var _TO = this._Uf1[_H3];
var _UO = this._Uf1[_H3 + 1];
var _mk = _ZM._6N(_UO, _TO);
var _ze1 = _mk._9N();
var _8g1 = this._Xf1[_H3];
var _9g1 = this._Xf1[_H3 + 1];
if (_8g1 + _9g1 == 0.0) {
continue
}
var _lp = _8g1 / (_8g1 + _9g1);
var _mp = _9g1 / (_8g1 + _9g1);
_TO._6N(_ZM._Vo(this._0g1 * _lp * (this._Yf1[_H3] - _ze1), _mk));
_UO._Wh(_ZM._Vo(this._0g1 * _mp * (this._Yf1[_H3] - _ze1), _mk))
}
},
_4g1: function() {
var _2g1 = this._3Q - 2;
for (var _H3 = 0; _H3 < _2g1; ++_H3) {
var _TO = this._Uf1[_H3];
var _UO = this._Uf1[_H3 + 1];
var _XQ = this._Uf1[_H3 + 2];
var _ag1 = this._Xf1[_H3];
var _bg1 = this._Xf1[_H3 + 1];
var _cg1 = this._Xf1[_H3 + 2];
var _NP = _ZM._6N(_UO, _TO);
var _F61 = _ZM._6N(_XQ, _UO);
var _dg1 = _NP._8N();
var _eg1 = _F61._8N();
if (_dg1 * _eg1 == 0.0) {
continue
}
var _kb = __N(_NP, _F61);
var _W9 = _ZN(_NP, _F61);
var _0b = _XM(_kb, _W9);
var _fg1 = _ZM._Vo(( - 1.0 / _dg1), _NP._cN());
var _gg1 = _ZM._Vo((1.0 / _eg1), _F61._cN());
var _hg1 = _ZM._3N(_fg1);
var _ig1 = _ZM._6N(_fg1, _gg1);
var _jg1 = _gg1;
var _eP = _ag1 * _ZN(_hg1, _hg1) + _bg1 * _ZN(_ig1, _ig1) + _cg1 * _ZN(_jg1, _jg1);
if (_eP == 0.0) {
continue
}
_eP = 1.0 / _eP;
var _jO = _0b - this._Zf1[_H3];
while (_jO > _eM) {
_0b -= 2 * _eM;
_jO = _0b - this._Zf1[_H3]
}
while (_jO < -_eM) {
_0b += 2.0 * _eM;
_jO = _0b - this._Zf1[_H3]
}
var _XZ = -this._1g1 * _eP * _jO;
_TO._Wh(_ZM._Vo((_ag1 * _XZ), _hg1));
_UO._Wh(_ZM._Vo((_bg1 * _XZ), _ig1));
_XQ._Wh(_ZM._Vo((_cg1 * _XZ), _jg1))
}
}
};
var _kg1 = {
_lg1: function(_KY) {
var _mg1 = [];
var _H3;
var _ng1;
var _W9;
var _Mq;
var _DP;
for (_W9 = _KY._U11(); _W9; _W9 = _W9._y_()) {
for (_Mq = _W9._v_(); _Mq; _Mq = _Mq._y_()) {
_DP = _Mq._U_();
_Mq._og1 = _mg1.length;
_mg1.push(_DP._dN())
}
}
var _pg1 = [];
for (_W9 = _KY._U11(); _W9; _W9 = _W9._y_()) {
_W9._qg1 = [];
for (_Mq = _W9._v_(); _Mq; _Mq = _Mq._y_()) {
_ng1 = _Mq._dN();
_ng1['shape'] = _Mq._og1;
delete _Mq._og1;
_W9._qg1.push(_pg1.length);
_pg1.push(_ng1)
}
}
var _D21 = [];
for (_W9 = _KY._U11(); _W9; _W9 = _W9._y_()) {
_ng1 = _W9._dN();
_ng1._pg1 = [];
for (_H3 = 0; _H3 < _W9._qg1.length; ++_H3) _ng1._pg1.push(_W9._qg1[_H3]);
delete _W9._qg1;
_W9._rg1 = _D21.length;
_D21.push(_ng1)
};
var _Ua1 = [];
var __9;
for (__9 = _KY._w_(), _H3 = 0; __9; __9 = __9._y_(), ++_H3) __9._Ue1 = _H3;
for (__9 = _KY._w_(); __9; __9 = __9._y_()) {
if (__9._jP() === _r11._Q21) continue;
_ng1 = __9._dN();
_ng1['bodyA'] = __9._H21()._rg1;
_ng1['bodyB'] = __9._I21()._rg1;
_Ua1.push(_ng1)
}
for (__9 = _KY._w_(); __9; __9 = __9._y_()) delete __9._Ue1;
for (_W9 = _KY._U11(); _W9; _W9 = _W9._y_()) delete _W9._rg1;
var _Nh = {
_mg1: _mg1,
_pg1: _pg1,
_D21: _D21,
_Ua1: _Ua1
};
return _Nh
},
_sg1: function(_ng1, _KY, clear) {
var _tg1 = JSON.parse(_ng1);
if (clear) {
for (var _W9 = _KY._U11(); _W9;) {
var _ni = _W9._y_();
_KY._k11(_W9);
_W9 = _ni
}
for (var __9 = _KY._w_(); __9;) {
var _ni = __9._y_();
_KY._n11(__9);
__9 = _ni
}
}
var _mg1 = [];
for (var _H3 = 0; _H3 < _tg1._mg1.length; ++_H3) {
var _ug1 = _tg1._mg1[_H3];
var _DP;
switch (_ug1._hP) {
case _gP._wP:
_DP = new _BP();
break;
case _gP._xP:
_DP = new _OP();
break;
case _gP._zP:
_DP = new _1Q();
break;
case _gP._yP:
_DP = new _jQ();
break
}
_DP._fN(_ug1);
_mg1.push(_DP)
}
var _pg1 = [];
for (_H3 = 0; _H3 < _tg1._pg1.length; ++_H3) {
var _vg1 = _tg1._pg1[_H3];
var _TC = new _mZ();
_TC._fN(_vg1);
_TC._DP = _mg1[_vg1['shape']];
_pg1.push(_TC)
}
var _D21 = [];
for (_H3 = 0; _H3 < _tg1._D21.length; ++_H3) {
var _wg1 = _tg1._D21[_H3];
var _kZ = new _wY();
_kZ._fN(_wg1);
var body = _KY._yD(_kZ);
for (var _f3 = 0; _f3 < _wg1._pg1.length; ++_f3) body._jZ(_pg1[_wg1._pg1[_f3]]);
_D21.push(body)
}
var _Ua1 = [];
var _xg1 = [];
for (_H3 = 0; _H3 < _tg1._Ua1.length; ++_H3) {
var _yg1 = _tg1._Ua1[_H3];
var _zg1;
switch (_yg1.type) {
case _r11._1b1:
_zg1 = new _jb1();
break;
case _r11._2b1:
_zg1 = new _Pc1();
break;
case _r11._L21:
_zg1 = new _Cc1();
break;
case _r11._M21:
_zg1 = new _ef1();
break;
case _r11._3b1:
_zg1 = new _Pd1();
break;
case _r11._4b1:
_zg1 = new _zd1();
break;
case _r11._5b1:
_zg1 = new _wd1();
break;
case _r11._6b1:
_zg1 = new _nd1();
break;
case _r11._7b1:
_zg1 = new _Ff1();
break;
case _r11._R21:
_zg1 = new _Ve1();
break;
default:
throw new _Xg('unknown joint')
}
_zg1._fN(_yg1, _D21);
if (_yg1.type === _r11._3b1) {
_xg1.push([_zg1, _Ua1.length]);
_Ua1.push(null)
} else {
var _E_ = _KY._q11(_zg1);
_Ua1.push(_E_)
}
}
for (_H3 = 0; _H3 < _xg1.length; ++_H3) {
_xg1[_H3][0]._Qd1 = _Ua1[_xg1[_H3][0]._Qd1];
_xg1[_H3][0]._Rd1 = _Ua1[_xg1[_H3][0]._Rd1];
_E_ = _KY._q11(_xg1[_H3][0]);
_Ua1[_xg1[_H3][1]] = _E_
}
}
};
var _Ag1 = (function() {
function _Bg1(_xr) {
return new _ZM(_xr ? (_xr._f3 || 0) : 0, _xr ? (_xr._g3 || 0) : 0)
}
function _Cg1(_xr) {
var _Dg1 = new Array(_xr._f3.length);
for (var _H3 = 0; _H3 < _Dg1.length; ++_H3) _Dg1[_H3] = new _ZM(_xr._f3[_H3], _xr._g3[_H3]);
return _Dg1
}
function _Eg1(_xr, _Fg1) {
var name = _xr.name;
var _cf;
if (typeof(_xr['int']) !== 'undefined') _cf = _xr['int'];
else if (typeof(_xr['float']) !== 'undefined') _cf = _xr['float'];
else if (typeof(_xr['string']) !== 'undefined') _cf = _xr['string'];
else if (typeof(_xr['bool']) !== 'undefined') _cf = _xr['bool'];
else if (typeof(_xr._Gg1) !== 'undefined') _cf = _Bg1(_xr._Gg1);
else throw new _Xg("unknown property type");
if (_Fg1.hasOwnProperty(name)) throw new _Xg("custom property possibly overwriting an existing one");
_Fg1[name] = _cf
}
function _Hg1(_xr, body) {
var _kZ = new _mZ();
_kZ._sP = _xr._sP || 0;
_kZ._K_._H_ = typeof(_xr['filter-categoryBits']) === 'undefined' ? 1 : _xr['filter-categoryBits'];
_kZ._K_._I_ = typeof(_xr['filter-maskBits']) === 'undefined' ? 65535 : _xr['filter-maskBits'];
_kZ._K_._J_ = typeof(_xr['filter-groupIndex']) === 'undefined' ? 0 : _xr['filter-groupIndex'];
_kZ._L_ = _xr._L_ || 0;
_kZ._M_ = _xr._M_ || 0;
_kZ._N_ = _xr._V_ || 0;
var _DP;
if (typeof(_xr._MR) !== 'undefined') {
_DP = new _BP();
_DP._CP = _Bg1(_xr._MR._OO);
_DP._iP = _xr._MR._PO || 0
} else if (typeof(_xr._NR) !== 'undefined') {
var _rb = _Cg1(_xr._NR._rb);
_DP = new _jQ();
_DP._gi(_rb, _rb.length)
} else if (typeof(_xr._OR) !== 'undefined') {
var _rb = _Cg1(_xr._OR._rb);
_DP = new _1Q();
_DP._3Q = _rb.length;
_DP._2Q = _rb;
if (_DP._7Q = _xr._OR._Ig1) _DP._5Q = _Bg1(_xr._OR._eQ);
if (_DP._6Q = _xr._OR._Jg1) _DP._4Q = _Bg1(_xr._OR._cQ)
} else throw new _Xg("unknown shape type");
_kZ._DP = _DP;
var _TC = body._jZ(_kZ);
_TC.name = _xr.name;
if (_xr._Kg1) for (var _H3 = 0; _H3 < _xr._Kg1.length; ++_H3) _Eg1(_xr, _TC)
}
function _Lg1(_xr, _KY) {
var _kZ = new _wY();
_kZ.type = _xr.type || _xY._yY;
_kZ._0b = _xr._0b || 0;
_kZ._CY = _xr._CY || 0;
_kZ._AY = _xr._AY || 0;
_kZ._EY = _xr._EY || !1;
_kZ._GY = _xr._GY || !1;
_kZ._FY = _xr._FY || !1;
_kZ._BY = _xr._BY || !1;
_kZ._zY = _Bg1(_xr._zY);
_kZ._IY = typeof(_xr._IY) !== 'undefined' ? _xr._IY: 1;
var _Mg1 = new _dP();
_Mg1._eP = _xr['massData-mass'] || 0;
_Mg1._OO = _Bg1(_xr['massData-center']);
_Mg1._fP = _xr['massData-I'] || 0;
_kZ.position = _Bg1(_xr.position);
var body = _KY._yD(_kZ);
body.name = _xr.name;
body._1_(_Mg1);
if (_xr._TC) for (var _H3 = 0; _H3 < _xr._TC.length; ++_H3) _Hg1(_xr._TC[_H3], body);
if (_xr._Kg1) for (_H3 = 0; _H3 < _xr._Kg1.length; ++_H3) _Eg1(_xr, body);
return body
}
var _Ng1 = {
'revolute': _jb1,
'distance': _Cc1,
'prismatic': _Pc1,
'wheel': _zd1,
'rope': _Ff1,
'motor': _Ve1,
'weld': _wd1,
'friction': _nd1
};
function _Og1(_xr, _KY, _D21) {
if (!_Ng1[_xr.type]) throw new _Xg("unknown joint type");
var _Pg1 = new _Ng1[_xr.type]();
switch (_Pg1.type) {
case _r11._1b1:
_Pg1._kb1 = _Bg1(_xr._lf1);
_Pg1._lb1 = _Bg1(_xr._mf1);
_Pg1._rb1 = _xr._rb1 || !1;
_Pg1._sb1 = _xr._sb1 || !1;
_Pg1._nb1 = _xr._Qg1 || 0;
_Pg1._pb1 = _xr._pb1 || 0;
_Pg1._qb1 = _xr._qb1 || 0;
_Pg1._mb1 = _xr._Rg1 || 0;
_Pg1._ob1 = _xr._Sg1 || 0;
break;
case _r11._L21:
_Pg1._kb1 = _Bg1(_xr._lf1);
_Pg1._lb1 = _Bg1(_xr._mf1);
_Pg1._kc1 = _xr._kc1 || 0;
_Pg1._jc1 = _xr._Tg1 || 0;
_Pg1.length = _xr.length || 0;
break;
case _r11._2b1:
_Pg1._kb1 = _Bg1(_xr._lf1);
_Pg1._lb1 = _Bg1(_xr._mf1);
_Pg1._rb1 = _xr._rb1 || !1;
_Pg1._sb1 = _xr._sb1 || !1;
_Pg1._Qc1 = _Bg1(_xr._Qc1);
_Pg1._Rc1 = _xr._Qg1 || 0;
_Pg1._Tc1 = _xr._Tc1 || 0;
_Pg1._qb1 = _xr._qb1 || 0;
_Pg1._mb1 = _xr._Rg1 || 0;
_Pg1._Sc1 = _xr._Sg1 || 0;
break;
case _r11._4b1:
_Pg1._kb1 = _Bg1(_xr._lf1);
_Pg1._lb1 = _Bg1(_xr._mf1);
_Pg1._sb1 = _xr._sb1 || !1;
_Pg1._Qc1 = _Bg1(_xr._Qc1);
_Pg1._pb1 = _xr._pb1 || 0;
_Pg1._qb1 = _xr._qb1 || 0;
_Pg1._kc1 = _xr._Ug1 || 0;
_Pg1._jc1 = _xr._Vg1 || 0;
break;
case _r11._7b1:
_Pg1._kb1 = _Bg1(_xr._lf1);
_Pg1._lb1 = _Bg1(_xr._mf1);
_Pg1._Gf1 = _xr._Gf1 || 0;
break;
case _r11._R21:
_Pg1._We1 = _Bg1(_xr._lf1);
_Pg1._Xe1 = _xr._Rg1 || 0;
_Pg1._ic1 = _xr._ic1 || 0;
_Pg1._od1 = _xr._od1 || 0;
_Pg1._Ye1 = _xr._Ye1 || 0;
break;
case _r11._5b1:
_Pg1._kb1 = _Bg1(_xr._lf1);
_Pg1._lb1 = _Bg1(_xr._mf1);
_Pg1._mb1 = _xr._Rg1 || 0;
_Pg1._kc1 = _xr._kc1 || 0;
_Pg1._jc1 = _xr._jc1 || 0;
break;
case _r11._6b1:
_Pg1._kb1 = _Bg1(_xr._lf1);
_Pg1._lb1 = _Bg1(_xr._mf1);
_Pg1._ic1 = _xr._ic1 || 0;
_Pg1._od1 = _xr._od1 || 0;
break;
default:
throw new _Xg("wat?")
}
_Pg1._x11 = _D21[_xr._x11 || 0];
_Pg1._y11 = _D21[_xr._y11 || 0];
_Pg1._z11 = _xr._z11 || !1;
var _E_ = _KY._q11(_Pg1);
_E_.name = _xr.name;
if (_xr._Kg1) for (var _H3 = 0; _H3 < _xr._Kg1.length; ++_H3) _Eg1(_xr, _E_);
return _E_
}
function _Wg1() {
this._KY = null;
this._B01 = 0;
this._A01 = 0;
this._Xg1 = 0;
this._pg1 = {};
this._D21 = {};
this._Ua1 = {};
Object.seal(this)
}
function _Yg1(_xr, _KY) {
var _Pt = new _Wg1();
_Pt._KY = _KY = _KY || new _xZ(new _ZM(0, 0));
_Pt._B01 = _xr._B01 || 0;
_Pt._A01 = _xr._A01 || 0;
_Pt._Xg1 = _xr._Xg1 || 0;
if (_xr._N01) _KY._621(_Bg1(_xr._N01));
_KY._V11(_xr._DY || !1);
_KY._821(_xr._Zg1 || !1);
_KY._X11(_xr._C01 || !1);
_KY._Z11(_xr.__g1 || !1);
_KY._021(_xr._0h1 || !1);
var _D21 = [];
var _1h1 = _xr.body;
if (_1h1) {
for (var _H3 = 0; _H3 < _1h1.length; ++_H3) {
var body = _Lg1(_1h1[_H3], _KY);
_D21.push(body);
for (var _Mq = body._v_(); _Mq; _Mq = _Mq._y_()) {
if (!_Pt._pg1[_Mq.name]) _Pt._pg1[_Mq.name] = [];
_Pt._pg1[_Mq.name].push(_Mq)
}
if (!_Pt._D21[body.name]) _Pt._D21[body.name] = [];
_Pt._D21[body.name].push(body)
}
}
var _Ua1 = [];
var _2h1 = _xr._E_;
if (_2h1) {
for (_H3 = 0; _H3 < _2h1.length; ++_H3) {
var _E_ = _Og1(_2h1[_H3], _KY, _D21);
_Ua1.push(_E_);
if (!_Pt._Ua1[_E_.name]) _Pt._Ua1[_E_.name] = [];
_Pt._Ua1[_E_.name].push(_E_)
}
}
return _Pt
}
var _Nh = {
_Yg1: _Yg1
};
return _Nh
})();
var _3h1 = [{
"trimmed": "version",
"name": "b2_version",
"def": _OM
},
{
"trimmed": "Vec2",
"name": "b2Vec2",
"def": _ZM
},
{
"trimmed": "Vec3",
"name": "b2Vec3",
"def": _hN
},
{
"trimmed": "Mat22",
"name": "b2Mat22",
"def": _jN
},
{
"trimmed": "Mat33",
"name": "b2Mat33",
"def": _wN
},
{
"trimmed": "Rot",
"name": "b2Rot",
"def": _JN
},
{
"trimmed": "Transform",
"name": "b2Transform",
"def": _NN
},
{
"trimmed": "Sweep",
"name": "b2Sweep",
"def": _PN
},
{
"trimmed": "Dot_v2_v2",
"name": "b2Dot_v2_v2",
"def": _ZN
},
{
"trimmed": "Cross_v2_v2",
"name": "b2Cross_v2_v2",
"def": __N
},
{
"trimmed": "Cross_v2_f",
"name": "b2Cross_v2_f",
"def": _0O
},
{
"trimmed": "Cross_f_v2",
"name": "b2Cross_f_v2",
"def": _1O
},
{
"trimmed": "Mul_m22_v2",
"name": "b2Mul_m22_v2",
"def": _2O
},
{
"trimmed": "MulT_m22_v2",
"name": "b2MulT_m22_v2",
"def": _3O
},
{
"trimmed": "Distance",
"name": "b2Distance",
"def": _4O
},
{
"trimmed": "DistanceSquared",
"name": "b2DistanceSquared",
"def": _5O
},
{
"trimmed": "Dot_v3_v3",
"name": "b2Dot_v3_v3",
"def": _AN
},
{
"trimmed": "Cross_v3_v3",
"name": "b2Cross_v3_v3",
"def": _BN
},
{
"trimmed": "Mul_m22_m22",
"name": "b2Mul_m22_m22",
"def": _6O
},
{
"trimmed": "MulT_m22_m22",
"name": "b2MulT_m22_m22",
"def": _7O
},
{
"trimmed": "Mul_m33_v3",
"name": "b2Mul_m33_v3",
"def": _8O
},
{
"trimmed": "Mul22_m33_v2",
"name": "b2Mul22_m33_v2",
"def": _9O
},
{
"trimmed": "Mul_r_r",
"name": "b2Mul_r_r",
"def": _aO
},
{
"trimmed": "MulT_r_r",
"name": "b2MulT_r_r",
"def": _cO
},
{
"trimmed": "Mul_r_v2",
"name": "b2Mul_r_v2",
"def": _dO
},
{
"trimmed": "MulT_r_v2",
"name": "b2MulT_r_v2",
"def": _eO
},
{
"trimmed": "Mul_t_v2",
"name": "b2Mul_t_v2",
"def": _fO
},
{
"trimmed": "Min_v2",
"name": "b2Min_v2",
"def": _rO
},
{
"trimmed": "Max_v2",
"name": "b2Max_v2",
"def": _tO
},
{
"trimmed": "Clamp",
"name": "b2Clamp",
"def": _uO
},
{
"trimmed": "MulT_t_v2",
"name": "b2MulT_t_v2",
"def": _hO
},
{
"trimmed": "Mul_t_t",
"name": "b2Mul_t_t",
"def": _iO
},
{
"trimmed": "MulT_t_t",
"name": "b2MulT_t_t",
"def": _kO
},
{
"trimmed": "Clamp_v2",
"name": "b2Clamp_v2",
"def": _vO
},
{
"trimmed": "NextPowerOfTwo",
"name": "b2NextPowerOfTwo",
"def": _wO
},
{
"trimmed": "Abs_v2",
"name": "b2Abs_v2",
"def": _oO
},
{
"trimmed": "Abs_m22",
"name": "b2Abs_m22",
"def": _pO
},
{
"trimmed": "IsPowerOfTwo",
"name": "b2IsPowerOfTwo",
"def": _xO
},
{
"trimmed": "RandomFloat",
"name": "b2RandomFloat",
"def": _zO
},
{
"trimmed": "Timer",
"name": "b2Timer",
"def": _9P
},
{
"trimmed": "Color",
"name": "b2Color",
"def": _CO
},
{
"trimmed": "Draw",
"name": "b2Draw",
"def": _DO
},
{
"trimmed": "ContactID",
"name": "b2ContactID",
"def": _bT
},
{
"trimmed": "ManifoldPoint",
"name": "b2ManifoldPoint",
"def": _hT
},
{
"trimmed": "Manifold",
"name": "b2Manifold",
"def": _mT
},
{
"trimmed": "WorldManifold",
"name": "b2WorldManifold",
"def": _xT
},
{
"trimmed": "GetPointStates",
"name": "b2GetPointStates",
"def": _ST
},
{
"trimmed": "ClipVertex",
"name": "b2ClipVertex",
"def": _XT
},
{
"trimmed": "RayCastInput",
"name": "b2RayCastInput",
"def": _YT
},
{
"trimmed": "RayCastOutput",
"name": "b2RayCastOutput",
"def": _ZT
},
{
"trimmed": "AABB",
"name": "b2AABB",
"def": __T
},
{
"trimmed": "CollideCircles",
"name": "b2CollideCircles",
"def": _fU
},
{
"trimmed": "CollidePolygonAndCircle",
"name": "b2CollidePolygonAndCircle",
"def": _jU
},
{
"trimmed": "FindMaxSeparation",
"name": "b2FindMaxSeparation",
"def": _vU
},
{
"trimmed": "FindIncidentEdge",
"name": "b2FindIncidentEdge",
"def": _JU
},
{
"trimmed": "CollidePolygons",
"name": "b2CollidePolygons",
"def": _TU
},
{
"trimmed": "CollideEdgeAndCircle",
"name": "b2CollideEdgeAndCircle",
"def": _oV
},
{
"trimmed": "EPAxis",
"name": "b2EPAxis",
"def": _CV
},
{
"trimmed": "TempPolygon",
"name": "b2TempPolygon",
"def": _GV
},
{
"trimmed": "ReferenceFace",
"name": "b2ReferenceFace",
"def": _HV
},
{
"trimmed": "EPCollider",
"name": "b2EPCollider",
"def": _KV
},
{
"trimmed": "CollideEdgeAndPolygon",
"name": "b2CollideEdgeAndPolygon",
"def": _pW
},
{
"trimmed": "ClipSegmentToLine",
"name": "b2ClipSegmentToLine",
"def": _lV
},
{
"trimmed": "TestShapeOverlap",
"name": "b2TestShapeOverlap",
"def": _yW
},
{
"trimmed": "TestOverlap",
"name": "b2TestOverlap",
"def": _qR
},
{
"trimmed": "Shape",
"name": "b2Shape",
"def": _gP
},
{
"trimmed": "MassData",
"name": "b2MassData",
"def": _dP
},
{
"trimmed": "CircleShape",
"name": "b2CircleShape",
"def": _BP
},
{
"trimmed": "EdgeShape",
"name": "b2EdgeShape",
"def": _OP
},
{
"trimmed": "ChainShape",
"name": "b2ChainShape",
"def": _1Q
},
{
"trimmed": "PolygonShape",
"name": "b2PolygonShape",
"def": _jQ
},
{
"trimmed": "Pair",
"name": "b2Pair",
"def": _YQ
},
{
"trimmed": "PairLessThan",
"name": "b2PairLessThan",
"def": _0R
},
{
"trimmed": "BroadPhase",
"name": "b2BroadPhase",
"def": _3R
},
{
"trimmed": "DistanceProxy",
"name": "b2DistanceProxy",
"def": _LR
},
{
"trimmed": "SimplexCache",
"name": "b2SimplexCache",
"def": _RR
},
{
"trimmed": "DistanceInput",
"name": "b2DistanceInput",
"def": _VR
},
{
"trimmed": "DistanceOutput",
"name": "b2DistanceOutput",
"def": _0S
},
{
"trimmed": "SimplexVertex",
"name": "b2SimplexVertex",
"def": _4S
},
{
"trimmed": "Simplex",
"name": "b2Simplex",
"def": _7S
},
{
"trimmed": "DistanceFunc",
"name": "b2DistanceFunc",
"def": _US
},
{
"trimmed": "TreeNode",
"name": "b2TreeNode",
"def": _CW
},
{
"trimmed": "DynamicTree",
"name": "b2DynamicTree",
"def": _5R
},
{
"trimmed": "TOIInput",
"name": "b2TOIInput",
"def": _IX
},
{
"trimmed": "TOIOutput",
"name": "b2TOIOutput",
"def": _MX
},
{
"trimmed": "SeparationFunction",
"name": "b2SeparationFunction",
"def": _RX
},
{
"trimmed": "TimeOfImpact",
"name": "b2TimeOfImpact",
"def": _eY
},
{
"trimmed": "BodyDef",
"name": "b2BodyDef",
"def": _wY
},
{
"trimmed": "Body",
"name": "b2Body",
"def": _xY
},
{
"trimmed": "Filter",
"name": "b2Filter",
"def": _G_
},
{
"trimmed": "FixtureDef",
"name": "b2FixtureDef",
"def": _mZ
},
{
"trimmed": "Fixture",
"name": "b2Fixture",
"def": _oZ
},
{
"trimmed": "DestructionListener",
"name": "b2DestructionListener",
"def": _901
},
{
"trimmed": "ContactFilter",
"name": "b2ContactFilter",
"def": _f01
},
{
"trimmed": "ContactImpulse",
"name": "b2ContactImpulse",
"def": _j01
},
{
"trimmed": "ContactListener",
"name": "b2ContactListener",
"def": _m01
},
{
"trimmed": "QueryCallback",
"name": "b2QueryCallback",
"def": _s01
},
{
"trimmed": "RayCastCallback",
"name": "b2RayCastCallback",
"def": _v01
},
{
"trimmed": "TimeStep",
"name": "b2TimeStep",
"def": _w01
},
{
"trimmed": "Position",
"name": "b2Position",
"def": _D01
},
{
"trimmed": "Velocity",
"name": "b2Velocity",
"def": _E01
},
{
"trimmed": "SolverData",
"name": "b2SolverData",
"def": _F01
},
{
"trimmed": "World",
"name": "b2World",
"def": _xZ
},
{
"trimmed": "MixFriction",
"name": "b2MixFriction",
"def": _081
},
{
"trimmed": "MixRestitution",
"name": "b2MixRestitution",
"def": _381
},
{
"trimmed": "ContactRegister",
"name": "b2ContactRegister",
"def": _681
},
{
"trimmed": "ContactEdge",
"name": "b2ContactEdge",
"def": _881
},
{
"trimmed": "Contact",
"name": "b2Contact",
"def": _b21
},
{
"trimmed": "CircleContact",
"name": "b2CircleContact",
"def": _x81
},
{
"trimmed": "PolygonContact",
"name": "b2PolygonContact",
"def": _G81
},
{
"trimmed": "ChainAndCircleContact",
"name": "b2ChainAndCircleContact",
"def": _B81
},
{
"trimmed": "ChainAndPolygonContact",
"name": "b2ChainAndPolygonContact",
"def": _C81
},
{
"trimmed": "EdgeAndCircleContact",
"name": "b2EdgeAndCircleContact",
"def": _D81
},
{
"trimmed": "EdgeAndPolygonContact",
"name": "b2EdgeAndPolygonContact",
"def": _E81
},
{
"trimmed": "PolygonAndCircleContact",
"name": "b2PolygonAndCircleContact",
"def": _F81
},
{
"trimmed": "defaultFilter",
"name": "b2_defaultFilter",
"def": _Q81
},
{
"trimmed": "defaultListener",
"name": "b2_defaultListener",
"def": _R81
},
{
"trimmed": "ContactManager",
"name": "b2ContactManager",
"def": _O01
},
{
"trimmed": "VelocityConstraintPoint",
"name": "b2VelocityConstraintPoint",
"def": _W81
},
{
"trimmed": "ContactPositionConstraint",
"name": "b2ContactPositionConstraint",
"def": __81
},
{
"trimmed": "ContactVelocityConstraint",
"name": "b2ContactVelocityConstraint",
"def": _791
},
{
"trimmed": "PositionSolverManifold",
"name": "b2PositionSolverManifold",
"def": _b91
},
{
"trimmed": "ContactSolverDef",
"name": "b2ContactSolverDef",
"def": _e91
},
{
"trimmed": "ContactSolver",
"name": "b2ContactSolver",
"def": _g91
},
{
"trimmed": "Island",
"name": "b2Island",
"def": _311
},
{
"trimmed": "Jacobian",
"name": "b2Jacobian",
"def": _Na1
},
{
"trimmed": "JointEdge",
"name": "b2JointEdge",
"def": _Ra1
},
{
"trimmed": "JointDef",
"name": "b2JointDef",
"def": _Sa1
},
{
"trimmed": "Joint",
"name": "b2Joint",
"def": _r11
},
{
"trimmed": "RevoluteJointDef",
"name": "b2RevoluteJointDef",
"def": _jb1
},
{
"trimmed": "RevoluteJoint",
"name": "b2RevoluteJoint",
"def": _bb1
},
{
"trimmed": "MouseJointDef",
"name": "b2MouseJointDef",
"def": _hc1
},
{
"trimmed": "MouseJoint",
"name": "b2MouseJoint",
"def": _9b1
},
{
"trimmed": "DistanceJointDef",
"name": "b2DistanceJointDef",
"def": _Cc1
},
{
"trimmed": "DistanceJoint",
"name": "b2DistanceJoint",
"def": _8b1
},
{
"trimmed": "PrismaticJointDef",
"name": "b2PrismaticJointDef",
"def": _Pc1
},
{
"trimmed": "PrismaticJoint",
"name": "b2PrismaticJoint",
"def": _ab1
},
{
"trimmed": "FrictionJointDef",
"name": "b2FrictionJointDef",
"def": _nd1
},
{
"trimmed": "FrictionJoint",
"name": "b2FrictionJoint",
"def": _gb1
},
{
"trimmed": "WeldJointDef",
"name": "b2WeldJointDef",
"def": _wd1
},
{
"trimmed": "WeldJoint",
"name": "b2WeldJoint",
"def": _fb1
},
{
"trimmed": "WheelJointDef",
"name": "b2WheelJointDef",
"def": _zd1
},
{
"trimmed": "WheelJoint",
"name": "b2WheelJoint",
"def": _eb1
},
{
"trimmed": "GearJointDef",
"name": "b2GearJointDef",
"def": _Pd1
},
{
"trimmed": "GearJoint",
"name": "b2GearJoint",
"def": _db1
},
{
"trimmed": "MotorJointDef",
"name": "b2MotorJointDef",
"def": _Ve1
},
{
"trimmed": "MotorJoint",
"name": "b2MotorJoint",
"def": _ib1
},
{
"trimmed": "PulleyJointDef",
"name": "b2PulleyJointDef",
"def": _ef1
},
{
"trimmed": "PulleyJoint",
"name": "b2PulleyJoint",
"def": _cb1
},
{
"trimmed": "RopeJointDef",
"name": "b2RopeJointDef",
"def": _Ff1
},
{
"trimmed": "RopeJoint",
"name": "b2RopeJoint",
"def": _hb1
},
{
"trimmed": "RopeDef",
"name": "b2RopeDef",
"def": _Pf1
},
{
"trimmed": "Rope",
"name": "b2Rope",
"def": _Tf1
},
{
"trimmed": "maxManifoldPoints",
"name": "b2_maxManifoldPoints",
"def": _fM
},
{
"trimmed": "maxPolygonVertices",
"name": "b2_maxPolygonVertices",
"def": _gM
},
{
"trimmed": "aabbExtension",
"name": "b2_aabbExtension",
"def": _hM
},
{
"trimmed": "aabbMultiplier",
"name": "b2_aabbMultiplier",
"def": _iM
},
{
"trimmed": "linearSlop",
"name": "b2_linearSlop",
"def": _jM
},
{
"trimmed": "angularSlop",
"name": "b2_angularSlop",
"def": _kM
},
{
"trimmed": "polygonRadius",
"name": "b2_polygonRadius",
"def": _lM
},
{
"trimmed": "maxSubSteps",
"name": "b2_maxSubSteps",
"def": _mM
},
{
"trimmed": "maxTOIContacts",
"name": "b2_maxTOIContacts",
"def": _nM
},
{
"trimmed": "velocityThreshold",
"name": "b2_velocityThreshold",
"def": _oM
},
{
"trimmed": "maxLinearCorrection",
"name": "b2_maxLinearCorrection",
"def": _pM
},
{
"trimmed": "maxAngularCorrection",
"name": "b2_maxAngularCorrection",
"def": _qM
},
{
"trimmed": "maxTranslation",
"name": "b2_maxTranslation",
"def": _rM
},
{
"trimmed": "maxTranslationSquared",
"name": "b2_maxTranslationSquared",
"def": _sM
},
{
"trimmed": "maxRotation",
"name": "b2_maxRotation",
"def": _tM
},
{
"trimmed": "maxRotationSquared",
"name": "b2_maxRotationSquared",
"def": _uM
},
{
"trimmed": "baumgarte",
"name": "b2_baumgarte",
"def": _vM
},
{
"trimmed": "toiBaugarte",
"name": "b2_toiBaugarte",
"def": _wM
},
{
"trimmed": "timeToSleep",
"name": "b2_timeToSleep",
"def": _xM
},
{
"trimmed": "linearSleepTolerance",
"name": "b2_linearSleepTolerance",
"def": _yM
},
{
"trimmed": "angularSleepTolerance",
"name": "b2_angularSleepTolerance",
"def": _zM
},
{
"trimmed": "epsilon",
"name": "b2_epsilon",
"def": _dM
},
{
"trimmed": "JsonSerializer",
"name": "b2JsonSerializer",
"def": _kg1
},
{
"trimmed": "RUBELoader",
"name": "b2RUBELoader",
"def": _Ag1
},
{
"trimmed": "Profiler",
"name": "b2Profiler",
"def": _RL
},
{
"trimmed": "ParticleDef",
"name": "b2ParticleDef",
"def": _m41
},
{
"trimmed": "ParticleColor",
"name": "b2ParticleColor",
"def": _d41
},
{
"trimmed": "ParticleGroupDef",
"name": "b2ParticleGroupDef",
"def": _y41
},
{
"trimmed": "ParticleGroup",
"name": "b2ParticleGroup",
"def": _C41
},
{
"trimmed": "ParticleSystem",
"name": "b2ParticleSystem",
"def": _511
}];
if (typeof(_4h1) !== "undefined" && typeof(window) !== "undefined") {
for (var _H3 = 0; _H3 < _3h1.length; ++_H3) window[_3h1[_H3]["name"]] = _3h1[_H3]["def"]
} else {
var _ht = {};
for (var _H3 = 0; _H3 < _3h1.length; ++_H3) _ht[_3h1[_H3]["trimmed"]] = _3h1[_H3]["def"];
if (typeof(_5h1) !== "undefined") _5h1._6h1 = _ht;
else window["b2"] = _ht
}
})();
function _7h1() {
var _8h1 = "#define MATRIX_VIEW 0\n" + "#define MATRIX_PROJECTION 1\n" + "#define MATRIX_WORLD 2\n" + "#define MATRIX_WORLD_VIEW 3\n" + "#define MATRIX_WORLD_VIEW_PROJECTION 4\n" + "#define MATRICES_MAX 5\n" + "#define FOG_SETTINGS 0\n" + "#define FOG_COLOUR 1\n" + "\n" + "uniform mat4 matrices[MATRICES_MAX];\n" + "uniform vec4 fogParameters[2];\n" + "\n" + "attribute vec3 vertex;\n" + "attribute vec4 color;\n" + "attribute vec2 UV;\n" + "\n" + "varying vec4 fcolor;\n" + "varying vec2 texc;\n" + "varying vec4 fogColor;\n" + "varying float fogFactor;\n" + "\n" + "float CalcFogFactor(vec4 pos)\n" + "{\n" + " vec4 viewpos = matrices[MATRIX_WORLD_VIEW] * pos;\n" + " vec4 fogParams = fogParameters[FOG_SETTINGS];\n" + " return (1.0 - ((fogParams.z - viewpos.z) * fogParams.y)) * fogParams.x;\n" + "}\n" + "\n" + "void main(void)\n" + "{\n" + " fcolor = color;\n" + " texc = UV;\n" + " vec4 pos = vec4(vertex.xyz, 1);\n" + " fogFactor = CalcFogFactor(pos);\n" + " fogColor = vec4(fogParameters[FOG_COLOUR].xyz, 1);\n" + " gl_Position = matrices[MATRIX_WORLD_VIEW_PROJECTION] * pos;\n" + " gl_PointSize = 1.0;\n" + "}";
return _8h1
}
function _9h1() {
var _ah1 = "precision mediump float;\n" + "uniform sampler2D pTexure;\n" + "uniform bool alphaTestEnabled;\n" + "uniform float alphaRefValue;" + "\n" + "varying vec4 fcolor;\n" + "varying vec2 texc;\n" + "varying vec4 fogColor;\n" + "varying float fogFactor;\n" + "\n" + "void DoAlphaTest(vec4 SrcColour)\n" + "{\n" + " if (alphaTestEnabled)\n" + " {\n" + " if (SrcColour.a <= alphaRefValue)\n" + " {\n" + " discard;\n" + " }\n" + " }\n" + "}\n" + "\n" + "void main(void)\n" + "{\n" + " vec4 color = texture2D(pTexure, texc).rgba * fcolor.rgba;\n" + " DoAlphaTest(color);\n" + " gl_FragColor = vec4(mix(color.rgb, fogColor.rgb, fogFactor), color.a);\n" + "}\n";
return _ah1
}
function _bh1() {
var _ch1 = "#define LIGHTS_MAX 8\n" + "#define MATRIX_VIEW 0\n" + "#define MATRIX_PROJECTION 1\n" + "#define MATRIX_WORLD 2\n" + "#define MATRIX_WORLD_VIEW 3\n" + "#define MATRIX_WORLD_VIEW_PROJECTION 4\n" + "#define MATRICES_MAX 5\n" + "#define FOG_SETTINGS 0\n" + "#define FOG_COLOUR 1\n" + "\n" + "uniform mat4 matrices[MATRICES_MAX];\n" + "uniform vec4 fogParameters[2];\n" + "\n" + "uniform vec4 dirlightdir[LIGHTS_MAX];\n" + "uniform vec4 pointlightpos[LIGHTS_MAX];\n" + "uniform vec4 lightcol[LIGHTS_MAX];\n" + "uniform vec4 ambientcol;\n" + "\n" + "attribute vec3 vertex;\n" + "attribute vec4 color;\n" + "attribute vec2 UV;\n" + "attribute vec3 normal;\n" + "\n" + "varying vec4 fcolor;\n" + "varying vec2 texc;\n" + "varying vec4 fogColor;\n" + "varying float fogFactor;\n" + "\n" + "float CalcFogFactor(vec4 pos)\n" + "{\n" + " vec4 viewpos = matrices[MATRIX_WORLD_VIEW] * pos;\n" + " vec4 fogParams = fogParameters[FOG_SETTINGS];\n" + " return (1.0 - ((fogParams.z - viewpos.z) * fogParams.y)) * fogParams.x;\n" + "}\n" + "\n" + "vec4 DoDirLight(vec3 ws_normal, vec4 dir, vec4 diffusecol)\n" + "{\n" + " float dotresult = dot(ws_normal, dir.xyz);\n" + " dotresult = max(0.0, dotresult);\n" + " return dotresult * diffusecol;\n" + "}\n" + "\n" + "vec4 DoPointLight(vec3 ws_pos, vec3 ws_normal, vec4 posrange, vec4 diffusecol)\n" + "{\n" + " float atten = 0.0;\n" + "\n" + " vec3 diffvec = ws_pos - posrange.xyz;\n" + " float veclen = length(diffvec);\n" + " if (veclen <= posrange.w)\n" + " {\n" + " atten = 1.0 / (1.0 + (veclen / posrange.w));\n" + " }\n" + "\n" + " diffvec /= veclen;\n" + " float dotresult = dot(ws_normal, diffvec);\n" + " dotresult = max(0.0, dotresult);\n" + "\n" + " return (diffusecol * dotresult * atten);\n" + "}\n" + "\n" + "vec4 DoLighting(vec4 vertexcolour, vec4 objectspacepos, vec3 objectspacenormal)\n" + "{\n" + " vec3 ws_normal;\n" + " vec3 ws_pos;\n" + " vec4 objectspacenormal4 = vec4(objectspacenormal, 0.0);\n" + "\n" + " ws_normal = (matrices[MATRIX_WORLD] * objectspacenormal4).xyz;\n" + " ws_normal = -normalize(ws_normal);\n" + " ws_pos = (matrices[MATRIX_WORLD] * objectspacepos).xyz;\n" + "\n" + " vec4 accumcol = vec4(0.0, 0.0, 0.0, 0.0);\n" + " for(int i = 0; i < LIGHTS_MAX; i++)\n" + " {\n" + " accumcol += DoDirLight(ws_normal, dirlightdir[i], lightcol[i]);\n" + " }\n" + " for(int i = 0; i < LIGHTS_MAX; i++)\n" + " {\n" + " accumcol += DoPointLight(ws_pos, ws_normal, pointlightpos[i], lightcol[i]);\n" + " }\n" + " accumcol *= vertexcolour;\n" + " accumcol += ambientcol;\n" + " return min(vec4(1.0, 1.0, 1.0, 1.0), accumcol);\n" + "}\n" + "\n" + "void main(void)\n" + "{\n" + " vec4 pos = vec4(vertex.xyz, 1);\n" + " vec4 lcolor = DoLighting(color, pos, normal);\n" + " fcolor = vec4(lcolor.xyz, 1);\n" + " fogFactor = CalcFogFactor(pos);\n" + " fogColor = vec4(fogParameters[FOG_COLOUR].xyz, 1);\n" + " texc = UV;\n" + " gl_Position = matrices[MATRIX_WORLD_VIEW_PROJECTION] * pos;\n" + " gl_PointSize = 1.0;\n" + "}";
return _ch1
}
function _dh1() {
var _ah1 = "precision mediump float;\n" + "uniform sampler2D pTexure;\n" + "uniform bool alphaTestEnabled;\n" + "uniform float alphaRefValue;" + "\n" + "varying vec4 fcolor;\n" + "varying vec2 texc;\n" + "varying vec4 fogColor;\n" + "varying float fogFactor;\n" + "\n" + "void DoAlphaTest(vec4 SrcColour)\n" + "{\n" + " if (alphaTestEnabled)\n" + " {\n" + " if (SrcColour.a <= alphaRefValue)\n" + " {\n" + " discard;\n" + " }\n" + " }\n" + "}\n" + "\n" + "\n" + "void main(void)\n" + "{\n" + " vec4 color = texture2D( pTexure, texc ).rgba * fcolor.rgba;\n" + " DoAlphaTest(color);\n" + " gl_FragColor = vec4(mix(color.rgb, fogColor.rgb, fogFactor), color.a);\n" + "}\n";
return _ah1
}
function _eh1(_fh1, _yJ) {
var _gh1 = null;
var _hh1 = null,
_ih1 = null;
var _jh1 = 0;
var _kh1, _lh1;
var _mh1, _nh1, _oh1 = [];
var _ph1, _qh1, _rh1, _sh1;
var _th1, _uh1;
Object.defineProperties(this, {
_vh1: {
get: function() {
return (_gh1 !== null && _gh1 !== undefined)
}
},
_6c: {
get: function() {
return _mh1
}
},
_Md: {
get: function() {
return _nh1
}
},
_wh1: {
get: function() {
return _kh1
}
},
_xh1: {
get: function() {
return _lh1
}
},
_yh1: {
get: function() {
return _ph1
}
},
_zh1: {
get: function() {
return _qh1
}
},
_Ah1: {
get: function() {
return _rh1
},
set: function(_cf) {
_rh1 = _cf
}
},
_Bh1: {
get: function() {
return _sh1
},
set: function(_cf) {
_sh1 = _cf
}
}
}); (function() {
_gh1 = _Ch1(_fh1, _yJ);
if (_gh1) {
_Dh1(_gh1);
var _Eh1 = _gh1.getParameter(_gh1.MAX_TEXTURE_IMAGE_UNITS);
_th1 = (_Eh1 < _4c._Fh1) ? _Eh1: _4c._Fh1;
_uh1 = _gh1.getParameter(_gh1.MAX_TEXTURE_SIZE);
_ih1 = new _Gh1(_yJ._Hh1);
_hh1 = new _Ih1(_ih1);
_Jh1();
_Kh1();
_Lh1();
_ih1._Dn(_kh1)
}
})();
function _Dh1(_Mh1) {
_Gh1.prototype._Mh1 = _Mh1;
_Ih1.prototype._Mh1 = _Mh1;
_wd.prototype._Mh1 = _Mh1;
_Nh1.prototype._Mh1 = _Mh1;
_Oh1.prototype._Mh1 = _Mh1;
_Ph1.prototype._Mh1 = _Mh1;
};
function _Qh1() {
var userAgent = navigator.userAgent.toString().toLowerCase();
var _Rh1 = userAgent.indexOf("trident/");
if (_Rh1 >= 0) {
var version = parseFloat(userAgent.slice(_Rh1 + "trident/".length));
if (version == 7) {
return ! 0
}
}
return ! 1
}
function _Ch1(_fh1, _yJ) {
if (_Qh1()) return null;
var _Sh1 = null;
var _Th1 = ["webgl", "experimental-webgl", "moz-webgl", "webkit-3d"]; {
for (var _H3 = 0; _H3 < _Th1.length; _H3++) {
try {
var _Uh1 = {
alpha: !0,
stencil: _yJ._Vh1,
antialias: !1,
premultipliedAlpha: !1,
preserveDrawingBuffer: _yJ._Wh1
};
_Sh1 = _fh1.getContext(_Th1[_H3], _Uh1);
if (_Sh1) {
break
}
} catch(_yF) {
return null
}
}
}
if (_Sh1) {
_ph1 = _fh1.width;
_qh1 = _fh1.height;
_rh1 = _ph1;
_sh1 = _qh1
}
return _Sh1
}
function _Jh1() {
var _Xh1 = new _Oh1();
_Xh1._Yh1();
_Xh1._Zh1();
_Xh1.__h1();
_mh1 = _oh1.push(_Xh1) - 1;
_hh1._0i1(_mh1);
var _1i1 = new _Oh1();
_1i1._2i1();
_1i1._Zh1();
_1i1.__h1();
_1i1._3i1();
_nh1 = _oh1.push(_1i1) - 1;
_hh1._0i1(_nh1)
};
this._4i1 = function(_5i1) {
for (var _H3 in _oh1) {
if (!_oh1.hasOwnProperty(_H3)) continue;
if (_oh1[_H3]._gN(_5i1)) {
return _H3
}
}
var _6i1 = _oh1.push(_5i1) - 1;
_hh1._0i1(_6i1);
return _6i1;
};
this._yd = function(_re) {
return _oh1[_re]
};
function _7i1(_8i1) {
while (((_8i1 & 0x1) == 0) && (_8i1 > 1)) {
_8i1 >>= 1
}
return (_8i1 == 1)
}
this._9i1 = function() {
return _uh1
};
this._ai1 = function(_bi1, _ci1, _di1, _ei1) {
_hh1._fi1();
_ih1._ai1(_bi1, _ci1, _di1, _ei1)
};
function _gi1(_hi1, type, source) {
var _9q = _gh1.createShader((type == 'vertex') ? _gh1.VERTEX_SHADER: _gh1.FRAGMENT_SHADER);
_gh1.shaderSource(_9q, source);
_gh1.compileShader(_9q);
if (!_gh1.getShaderParameter(_9q, _gh1.COMPILE_STATUS)) {
alert("Could not compile " + type + " shader:\n\n" + _gh1.getShaderInfoLog(_9q));
return
}
_gh1.attachShader(_hi1, _9q)
};
function _Kh1() {
var _ch1 = _7h1();
var _ah1 = _9h1();
var _ii1 = _gh1.createProgram();
var error = _gh1.getError();
_gi1(_ii1, "vertex", _ch1);
_gi1(_ii1, "fragment", _ah1);
_gh1.linkProgram(_ii1);
error = _gh1.getError();
if (!_gh1.getProgramParameter(_ii1, _gh1.LINK_STATUS)) {
alert("Could not initialise shaders\n\n");
return ! 1
}
_gh1.useProgram(_ii1);
_kh1 = _ii1;
_ii1._ji1 = [];
_ii1._ji1.push(_gh1.getAttribLocation(_ii1, "vertex"));
_ii1._ji1.push(_gh1.getAttribLocation(_ii1, "color"));
_ii1._ji1.push(_gh1.getAttribLocation(_ii1, "UV"));
_ii1._ki1 = _gh1.getUniformLocation(_ii1, "pTexure");
_ii1._li1 = _gh1.getUniformLocation(_ii1, "matrices");
_ii1._mi1 = _gh1.getUniformLocation(_ii1, "fogParameters");
_ii1._ni1 = _gh1.getUniformLocation(_ii1, "alphaTestEnabled");
_ii1._oi1 = _gh1.getUniformLocation(_ii1, "alphaRefValue");
return ! 0
}
function _Lh1() {
var _8h1 = _bh1();
var _ah1 = _dh1();
var _ii1 = _gh1.createProgram();
var error = _gh1.getError();
_gi1(_ii1, "vertex", _8h1);
_gi1(_ii1, "fragment", _ah1);
_gh1.linkProgram(_ii1);
error = _gh1.getError();
if (!_gh1.getProgramParameter(_ii1, _gh1.LINK_STATUS)) {
alert("Could not initialise 3D shader\n\n");
return ! 1
}
_gh1.useProgram(_ii1);
_ii1._pi1 = _gh1.getUniformLocation(_ii1, "ViewMatrix");
_lh1 = _ii1;
_ii1._ji1 = [];
_ii1._ji1.push(_gh1.getAttribLocation(_ii1, "vertex"));
_ii1._ji1.push(_gh1.getAttribLocation(_ii1, "color"));
_ii1._ji1.push(_gh1.getAttribLocation(_ii1, "UV"));
_ii1._ji1.push(_gh1.getAttribLocation(_ii1, "normal"));
_ii1._ki1 = _gh1.getUniformLocation(_ii1, "pTexure");
_ii1._li1 = _gh1.getUniformLocation(_ii1, "matrices");
_ii1._qi1 = _gh1.getUniformLocation(_ii1, "dirlightdir");
_ii1._ri1 = _gh1.getUniformLocation(_ii1, "pointlightpos");
_ii1._si1 = _gh1.getUniformLocation(_ii1, "lightcol");
_ii1._ti1 = _gh1.getUniformLocation(_ii1, "ambientcol");
_ii1._mi1 = _gh1.getUniformLocation(_ii1, "fogParameters");
_ii1._ni1 = _gh1.getUniformLocation(_ii1, "alphaTestEnabled");
_ii1._oi1 = _gh1.getUniformLocation(_ii1, "alphaRefValue");
return ! 0
}
this._ui1 = function(_vi1, _wi1, _xi1) {
if (_vi1 == "None" || _wi1 == "None") {
var _yi1 = {
_zi1: null,
_Ai1: null
};
return _yi1
}
var _ii1 = _gh1.createProgram();
var error = _gh1.getError();
_gi1(_ii1, "vertex", _vi1);
_gi1(_ii1, "fragment", _wi1);
_gh1.linkProgram(_ii1);
error = _gh1.getError();
if (!_gh1.getProgramParameter(_ii1, _gh1.LINK_STATUS)) {
var _yi1 = {
_zi1: null,
_Ai1: null
};
return _yi1
}
_gh1.useProgram(_ii1);
_ii1._li1 = _gh1.getUniformLocation(_ii1, "gm_Matrices");
_ii1._qi1 = _gh1.getUniformLocation(_ii1, "gm_Lights_Direction");
_ii1._ri1 = _gh1.getUniformLocation(_ii1, "gm_Lights_PosRange");
_ii1._si1 = _gh1.getUniformLocation(_ii1, "gm_Lights_Colour");
_ii1._ti1 = _gh1.getUniformLocation(_ii1, "gm_AmbientColour");
_ii1._ji1 = [];
for (var _Bi1 = 0; _Bi1 < _xi1.length; _Bi1++) {
_ii1._ji1.push(_gh1.getAttribLocation(_ii1, _xi1[_Bi1]))
}
var _Ci1 = "gm_BaseTexture";
var _Di1 = [_Ci1];
var _Ei1 = 0;
var _Fi1 = [];
var _Gi1 = _gh1.getUniformLocation(_ii1, _Ci1);
_gh1.uniform1iv(_Gi1, [_Ei1++]);
_ii1._ki1 = _Gi1;
var _Hi1 = _gh1.getProgramParameter(_ii1, _gh1.ACTIVE_UNIFORMS);
for (var _vb = 0; _vb < _Hi1; _vb++) {
var _Ii1 = _gh1.getActiveUniform(_ii1, _vb);
if ((_Ii1.type == _gh1.SAMPLER_2D) || (_Ii1.type == _gh1.SAMPLER_CUBE)) {
if (_Ii1.name != _Ci1) {
_Di1[_Ei1] = _Ii1.name;
var _Bi1 = _gh1.getUniformLocation(_ii1, _Ii1.name);
_gh1.uniform1iv(_Bi1, [_Ei1++])
}
}
}
_yi1 = {
_zi1: _ii1,
_Ai1: _Di1
};
return _yi1
};
this._Ji1 = function() {
_ih1._aP();
_jh1++
};
this._Ki1 = function() {
_hh1._fi1();
_ih1._F8++;
_ih1._Li1();
_gh1.clearColor(1, 1, 1, 1);
_gh1.colorMask(!1, !1, !1, !0);
_gh1.clear(_gh1.COLOR_BUFFER_BIT);
_gh1.colorMask(!0, !0, !0, !0)
};
this._fi1 = function() {
_hh1._fi1();
_ih1._Li1()
};
this._Mi1 = function(_zh, _Ni1) {
_hh1._fi1();
_ih1._Mi1(_zh, _Ni1)
};
this._on = function(_Oi1) {
_hh1._fi1();
_ih1._Pi1(_4c._Qi1, _Oi1)
};
this._sn = function(_Oi1) {
_hh1._fi1();
_ih1._Pi1(_4c._Ri1, _Oi1)
};
this._Un = function(_Si1) {
_hh1._fi1();
_ih1._Pi1(_4c._Ti1, _Si1)
};
this._qn = function(_Oi1) {
_hh1._fi1();
_ih1._Pi1(_4c._Ui1, _Oi1)
};
this._on = function(_Oi1) {
_hh1._fi1();
_ih1._Pi1(_4c._Qi1, _Oi1)
};
this._An = function(_Vi1, _Wi1, _Xi1, _Yi1) {
_hh1._fi1();
var _Zi1 = {
_xk: _Vi1,
_yk: _Wi1,
_zk: _Xi1,
alpha: _Yi1
};
_ih1._Pi1(_4c.__i1, _Zi1)
};
this._no = function(_U8, _0j1, _1j1, _2j1) {
_hh1._fi1();
_ih1._no(_U8, _0j1, _1j1, _2j1)
};
this._po = function(_U8, _Oi1, _3j1) {
_hh1._fi1();
_ih1._po(_U8, _Oi1, _3j1)
};
this._ro = function(_3j1) {
_hh1._fi1();
_ih1._4j1(_3j1)
};
this._to = function(_5j1) {
_hh1._fi1();
_ih1._6j1(_5j1)
};
this._7j1 = function(_Bn, _8j1) {
_hh1._fi1();
_ih1._7j1(_Bn, _8j1)
};
this._9j1 = function(_aj1, _bj1) {
_hh1._fi1();
if (_bj1) {
_ih1._cj1(_aj1, _4c._dj1, _4c._ej1);
_ih1._cj1(_aj1, _4c._fj1, _4c._ej1)
} else {
_ih1._cj1(_aj1, _4c._dj1, _4c._gj1);
_ih1._cj1(_aj1, _4c._fj1, _4c._gj1)
}
};
this._hj1 = function(_aj1, _ij1) {
_hh1._fi1();
_ih1._cj1(_aj1, _4c._jj1, _ij1);
_ih1._cj1(_aj1, _4c._kj1, _ij1)
};
this._lj1 = function() {
return _th1
};
this._mj1 = function(_Bn) {
_hh1._fi1();
_ih1._Pi1(_4c._nj1, _Bn)
};
this._oj1 = function(_Kq) {
_hh1._fi1();
_ih1._Pi1(_4c._pj1, _Kq)
};
this._qj1 = function(_rj1) {
_hh1._fi1();
_ih1._Pi1(_4c._sj1, _rj1)
};
this._tj1 = function(_uj1) {
_hh1._fi1();
_ih1._Pi1(_4c._vj1, _uj1)
};
this._Dn = function(_wj1) {
_hh1._fi1();
_ih1._Dn(_wj1)
};
this._xj1 = function(_wj1, _yj1) {
return _gh1.getUniformLocation(_wj1, _yj1)
};
this._zj1 = function(_Aj1, _Bj1) {
_hh1._fi1();
_ih1._zj1(_Aj1, _Bj1)
};
this._Cj1 = function(_Aj1, _Bj1) {
_hh1._fi1();
_ih1._Cj1(_Aj1, _Bj1)
};
this._Dj1 = function(_Aj1, _Bj1) {
_hh1._fi1();
_ih1._Dj1(_Aj1, _Bj1)
};
this._Ej1 = function(_Aj1, _Bj1, _Fj1) {
_hh1._fi1();
_ih1._Ej1(_Aj1, _Bj1, _Fj1)
};
this._Gj1 = function(_Aj1, _Bj1, _Fj1) {
_hh1._fi1();
_ih1._Gj1(_Aj1, _Bj1, _Fj1)
};
this._Hj1 = function(_Xr) {
_hh1._fi1();
_ih1._Hj1(_Xr)
};
this._Ij1 = function(_Ye, _V8, _W8, _fh1) {
_ih1._Ij1(_Ye, _V8, _W8, _fh1)
};
this._Jj1 = function(_aj1, _Ye) {
_4c._Kj1(_Ye instanceof _Nh1, "Texture is not a yyGLTexture", _4c._Lj1);
_hh1._fi1();
_ih1._Jj1(_aj1, _Ye)
};
this._Mn = function(_Vl) {
_hh1._fi1();
_ih1._Mj1(_Vl)
};
this._Tn = function(_Vl) {
_hh1._fi1();
_ih1._Nj1(_Vl)
};
this._Oj1 = function(_Vl) {
_hh1._fi1();
_ih1._Pj1(_Vl)
};
this._Qj1 = function(_Rj1) {
var _Sj1 = _gh1.getParameter(_gh1.TEXTURE_BINDING_2D);
var _Kd = _gh1.createTexture();
_gh1.bindTexture(_gh1.TEXTURE_2D, _Kd);
_gh1.texImage2D(_gh1.TEXTURE_2D, 0, _gh1.RGBA, _gh1.RGBA, _gh1.UNSIGNED_BYTE, _Rj1);
var _Nh = new _Nh1(_Kd, _Rj1.width, _Rj1.height, _7i1(_Rj1.width) && _7i1(_Rj1.height));
_gh1.bindTexture(_gh1.TEXTURE_2D, _Sj1);
return _Nh
};
this._Tj1 = function(_Cd, _Uj1, _Vj1, _Sd) {
var _Jt = 0;
if (_Cd) {
_Jt |= _gh1.COLOR_BUFFER_BIT;
}
if (_Uj1) {
_Jt |= _gh1.DEPTH_BUFFER_BIT
}
_ih1._Tj1(_Jt, _Sd)
};
this._Wj1 = function(_xJ) {
_hh1._fi1();
_ih1._Wj1(_xJ)
};
function _Xj1(_Yj1, _vh, _wh) {
if ((_vh == 0) || (_wh == 0)) {
return
}
var _Zj1 = _Yj1[(_wh - 1) * _vh] & 0xffffff;
for (_H3 = 0; _H3 < (_vh * _wh); _H3++) {
if ((_Yj1[_H3] & 0xffffff) == _Zj1) {
_Yj1[_H3] = _Yj1[_H3] & 0xffffff
}
}
}
function __j1(__d) {
var max = _uh1;
var _x3 = 1;
while (_x3 <= max) {
if (__d <= _x3) return _x3;
_x3 = _x3 << 1
}
return max
}
this._0k1 = function(_Rj1, _V8, _W8, _vh, _wh, _Aj, _Bj, _1k1) {
this._fi1();
var _2k1 = new Uint8Array(_vh * _wh * 4);
_gh1.readPixels(_V8, _sh1 - (_W8 + _wh), _vh, _wh, _gh1.RGBA, _gh1.UNSIGNED_BYTE, _2k1);
var _3k1;
if (_1k1) {
var _4k1 = new ArrayBuffer(_vh * _wh * 4);
_3k1 = new Uint8Array(_4k1);
for (var _xb = 0; _xb < _wh; _xb++) {
var _5k1 = _2k1.subarray(_xb * _vh * 4, (_xb + 1) * _vh * 4);
var _6k1 = _3k1.subarray((_wh - 1 - _xb) * _vh * 4, (_wh - _xb) * _vh * 4);
_6k1.set(_5k1)
}
if (_Aj) {
_Xj1(new Int32Array(_4k1), _vh, _wh)
}
} else {
_3k1 = _2k1
}
var _J3 = __j1(_vh);
var _K3 = __j1(_wh);
var _Sj1 = _gh1.getParameter(_gh1.TEXTURE_BINDING_2D);
var _Kd = _gh1.createTexture();
_gh1.bindTexture(_gh1.TEXTURE_2D, _Kd);
_gh1.texImage2D(_gh1.TEXTURE_2D, 0, _gh1.RGBA, _J3, _K3, 0, _gh1.RGBA, _gh1.UNSIGNED_BYTE, null);
_gh1.texSubImage2D(_gh1.TEXTURE_2D, 0, 0, 0, _vh, _wh, _gh1.RGBA, _gh1.UNSIGNED_BYTE, _3k1);
_gh1.texParameteri(_gh1.TEXTURE_2D, _gh1.TEXTURE_MAG_FILTER, _gh1.NEAREST);
_gh1.texParameteri(_gh1.TEXTURE_2D, _gh1.TEXTURE_MIN_FILTER, _gh1.NEAREST);
var _Nh = new _Nh1(_Kd, _J3, _K3, (_J3 == _vh) && (_K3 == _wh));
_Rj1.width = _J3;
_Rj1.height = _K3;
_gh1.bindTexture(_gh1.TEXTURE_2D, _Sj1);
_ih1._aP();
return _Nh
};
this._7k1 = function(_Rj1, _8k1, _V8, _W8, _vh, _wh, _Aj, _Bj) {
this._fi1();
var _9k1 = _gh1.getParameter(_gh1.FRAMEBUFFER_BINDING);
var _4k1 = new ArrayBuffer(_vh * _wh * 4);
var _3k1 = new Uint8Array(_4k1);
_gh1.bindFramebuffer(_gh1.FRAMEBUFFER, _8k1);
_gh1.readPixels(_V8, _W8, _vh, _wh, _gh1.RGBA, _gh1.UNSIGNED_BYTE, _3k1);
_gh1.bindFramebuffer(_gh1.FRAMEBUFFER, _9k1);
if (_Aj) {
_Xj1(new Int32Array(_4k1), _vh, _wh)
}
var _J3 = __j1(_vh);
var _K3 = __j1(_wh);
var _Sj1 = _gh1.getParameter(_gh1.TEXTURE_BINDING_2D);
var _Kd = _gh1.createTexture();
_gh1.bindTexture(_gh1.TEXTURE_2D, _Kd);
_gh1.texImage2D(_gh1.TEXTURE_2D, 0, _gh1.RGBA, _J3, _K3, 0, _gh1.RGBA, _gh1.UNSIGNED_BYTE, null);
_gh1.texSubImage2D(_gh1.TEXTURE_2D, 0, 0, 0, _vh, _wh, _gh1.RGBA, _gh1.UNSIGNED_BYTE, _3k1);
_gh1.texParameteri(_gh1.TEXTURE_2D, _gh1.TEXTURE_MAG_FILTER, _gh1.NEAREST);
_gh1.texParameteri(_gh1.TEXTURE_2D, _gh1.TEXTURE_MIN_FILTER, _gh1.NEAREST);
var _Nh = new _Nh1(_Kd, _J3, _K3, (_J3 == _vh) && (_K3 == _wh));
_Rj1.width = _J3;
_Rj1.height = _K3;
_gh1.bindTexture(_gh1.TEXTURE_2D, _Sj1);
_ih1._aP();
return _Nh
};
this._ak1 = function(_Rj1, _bk1, _vh, _wh) {
var _J3 = __j1(_vh);
var _K3 = __j1(_wh);
var _Sj1 = _gh1.getParameter(_gh1.TEXTURE_BINDING_2D);
var _Kd = _gh1.createTexture();
_gh1.bindTexture(_gh1.TEXTURE_2D, _Kd);
_gh1.texImage2D(_gh1.TEXTURE_2D, 0, _gh1.RGBA, _J3, _K3, 0, _gh1.RGBA, _gh1.UNSIGNED_BYTE, null);
_gh1.texSubImage2D(_gh1.TEXTURE_2D, 0, 0, 0, _vh, _wh, _gh1.RGBA, _gh1.UNSIGNED_BYTE, _bk1);
_gh1.texParameteri(_gh1.TEXTURE_2D, _gh1.TEXTURE_MAG_FILTER, _gh1.NEAREST);
_gh1.texParameteri(_gh1.TEXTURE_2D, _gh1.TEXTURE_MIN_FILTER, _gh1.NEAREST);
var _Nh = new _Nh1(_Kd, _J3, _K3, (_J3 == _vh) && (_K3 == _wh));
_Rj1.width = _J3;
_Rj1.height = _K3;
_gh1.bindTexture(_gh1.TEXTURE_2D, _Sj1);
_ih1._aP();
return _Nh
};
this._ck1 = function(_Rj1, _bk1, _vh, _wh) {
var _4k1 = new ArrayBuffer(_vh * _wh * 4);
var _dk1 = new DataView(_4k1);
for (var _C9 = 0; _C9 < _vh * _wh; _C9++) {
_dk1.setUint32(_C9 * 4, ~~_bk1[_C9], !0)
}
return this._ak1(_Rj1, new Uint8Array(_4k1), _vh, _wh)
};
this._ek1 = function(_Ye, _Gd) {
_4c._Kj1(_Ye instanceof _Nh1, "Texture is not a yyGLTexture", _4c._Lj1);
var _Kd = _Ye._fk1;
var _J3 = _Ye._gk1;
var _K3 = _Ye._hk1;
var _9k1 = _gh1.getParameter(_gh1.FRAMEBUFFER_BINDING);
var _ik1 = _gh1.createFramebuffer();
_gh1.bindFramebuffer(_gh1.FRAMEBUFFER, _ik1);
_gh1.framebufferTexture2D(_gh1.FRAMEBUFFER, _gh1.COLOR_ATTACHMENT0, _gh1.TEXTURE_2D, _Kd, 0);
var _3k1 = new Uint8Array(_J3 * _K3 * 4);
_gh1.readPixels(0, 0, _J3, _K3, _gh1.RGBA, _gh1.UNSIGNED_BYTE, _3k1);
_gh1.bindFramebuffer(_gh1.FRAMEBUFFER, _9k1);
_gh1.deleteFramebuffer(_ik1);
for (var _H3 = 0; _H3 < (_J3 * _K3); _H3++) {
_3k1[(_H3 * 4) + 3] = _Gd[_H3]
}
var _qS = __j1(_J3);
var _Gt = __j1(_K3);
var _Sj1 = _gh1.getParameter(_gh1.TEXTURE_BINDING_2D);
var _jk1 = _gh1.createTexture();
_gh1.bindTexture(_gh1.TEXTURE_2D, _jk1);
_gh1.texImage2D(_gh1.TEXTURE_2D, 0, _gh1.RGBA, _qS, _Gt, 0, _gh1.RGBA, _gh1.UNSIGNED_BYTE, null);
_gh1.texSubImage2D(_gh1.TEXTURE_2D, 0, 0, 0, _J3, _K3, _gh1.RGBA, _gh1.UNSIGNED_BYTE, _3k1);
_gh1.texParameteri(_gh1.TEXTURE_2D, _gh1.TEXTURE_MAG_FILTER, _gh1.NEAREST);
_gh1.texParameteri(_gh1.TEXTURE_2D, _gh1.TEXTURE_MIN_FILTER, _gh1.NEAREST);
var _Nh = new _Nh1(_jk1, _qS, _Gt, (_qS == _J3) && (_Gt == _K3));
_gh1.deleteTexture(_Ye._fk1);
_gh1.bindTexture(_gh1.TEXTURE_2D, _Sj1);
return _Nh
};
this._kk1 = function(_V8, _W8) {
this._fi1();
var _3k1 = new Uint8Array(16);
_gh1.readPixels(_V8, _sh1 - _W8, 1, 1, _gh1.RGBA, _gh1.UNSIGNED_BYTE, _3k1);
var _1b = (_3k1[0]) | (_3k1[1] << 8) | (_3k1[2] << 16) | (_3k1[3] << 24);
_ih1._aP();
return _1b
};
this._lk1 = function(_8k1, _V8, _W8) {
this._fi1();
var _9k1 = _gh1.getParameter(_gh1.FRAMEBUFFER_BINDING);
var _3k1 = new Uint8Array(16);
_gh1.bindFramebuffer(_gh1.FRAMEBUFFER, _8k1);
_gh1.readPixels(_V8, _W8, 1, 1, _gh1.RGBA, _gh1.UNSIGNED_BYTE, _3k1);
var _1b = (_3k1[0]) | (_3k1[1] << 8) | (_3k1[2] << 16) | (_3k1[3] << 24);
_gh1.bindFramebuffer(_gh1.FRAMEBUFFER, _9k1);
_ih1._aP();
return _1b
};
this._mk1 = function(_vh, _wh) {
var _Sj1 = _gh1.getParameter(_gh1.TEXTURE_BINDING_2D);
var _9k1 = _gh1.getParameter(_gh1.FRAMEBUFFER_BINDING);
var _nk1 = _gh1.getParameter(_gh1.RENDERBUFFER_BINDING); {
var _ok1 = _gh1.createFramebuffer();
_ok1.width = _vh;
_ok1.height = _wh;
_gh1.bindFramebuffer(_gh1.FRAMEBUFFER, _ok1);
var _pk1 = _gh1.createTexture();
_gh1.bindTexture(_gh1.TEXTURE_2D, _pk1);
_gh1.texImage2D(_gh1.TEXTURE_2D, 0, _gh1.RGBA, _vh, _wh, 0, _gh1.RGBA, _gh1.UNSIGNED_BYTE, null);
var _qk1 = new _Nh1(_pk1, _vh, _wh, _7i1(_vh) && _7i1(_wh));
var _rk1 = _gh1.createRenderbuffer();
_gh1.bindRenderbuffer(_gh1.RENDERBUFFER, _rk1);
_gh1.renderbufferStorage(_gh1.RENDERBUFFER, _gh1.DEPTH_STENCIL, _ok1.width, _ok1.height);
_gh1.framebufferTexture2D(_gh1.FRAMEBUFFER, _gh1.COLOR_ATTACHMENT0, _gh1.TEXTURE_2D, _pk1, 0);
_gh1.framebufferRenderbuffer(_gh1.FRAMEBUFFER, _gh1.DEPTH_STENCIL_ATTACHMENT, _gh1.RENDERBUFFER, _rk1)
}
_gh1.bindTexture(_gh1.TEXTURE_2D, _Sj1);
_gh1.bindFramebuffer(_gh1.FRAMEBUFFER, _9k1);
_gh1.bindRenderbuffer(_gh1.RENDERBUFFER, _nk1);
var _sk1 = {
_tk1: _ok1,
_uk1: _rk1,
_fk1: _qk1
};
return _sk1
};
this._vk1 = function(_8k1) {
_gh1.deleteFramebuffer(_8k1._tk1);
_gh1.deleteRenderbuffer(_8k1._uk1);
_gh1.deleteTexture(_8k1._fk1._fk1);
_8k1._fk1 = null
};
this._wk1 = function(_Ye) {
_4c._Kj1(_Ye instanceof _Nh1, "NULL texture is not a yyGLTexture", _4c._Lj1);
_ih1._xk1 = _Ye
};
this._3c = function(_nd, _Ye, _re, _yk1) {
_4c._Kj1((_Ye == null) || (_Ye instanceof _Nh1), "Texture is not a yyGLTexture", _4c._Lj1);
return _hh1._3c(_nd, _Ye, _re, _yk1, _oh1[_re], _jh1)
};
this._Ze = function(_nd, _Ye, _zk1, _Ak1) {
_4c._Kj1((_Ye == null) || (_Ye instanceof _Nh1), "Texture is not a yyGLTexture", _4c._Lj1);
_hh1._Bk1(_nd, _Ye, _zk1, _Ak1)
}
}
var _4c = {
_Ck1: 8,
_Fh1: 8,
_Dk1: -1,
_5c: 0,
_sd: 1,
_rd: 2,
_pd: 3,
_qd: 4,
_od: 5,
_ue: 1,
_ze: 2,
_Je: 3,
_He: 4,
_Ek1: 5,
_Fk1: 6,
_Gk1: 7,
_Hk1: 8,
_Ik1: 9,
_Jk1: 10,
_Kk1: 11,
_Lk1: 12,
_Mk1: 13,
_Nk1: 14,
_Ok1: 14,
_Le: 1,
_ve: 2,
_xe: 3,
_Pe: 4,
_Ae: 5,
_Re: 6,
_Pk1: 6,
_Qk1: 1,
_Rk1: 2,
_Sk1: 3,
_Tk1: 4,
_Uk1: 5,
_Vk1: 6,
_Wk1: 7,
_Xk1: 8,
_Yk1: 9,
_Zk1: 10,
__k1: 11,
_0l1: 12,
_1l1: 13,
_2l1: 14,
_3l1: 15,
_4l1: 16,
_5l1: 16,
_6l1: 0,
_Qi1: 1,
_7l1: 2,
_Ui1: 3,
_8l1: 4,
_9l1: 5,
_al1: 6,
_Ri1: 7,
_bl1: 8,
_cl1: 9,
_dl1: 10,
_el1: 11,
__i1: 12,
_nj1: 13,
_fl1: 14,
_gl1: 15,
_sj1: 16,
_pj1: 17,
_vj1: 18,
_hl1: 19,
_il1: 20,
_Ti1: 21,
_jl1: 21,
_kl1: 1,
_ll1: 2,
_ml1: 3,
_nl1: 4,
_ol1: 5,
_pl1: 6,
_ql1: 7,
_rl1: 8,
_sl1: 1,
_tl1: 2,
_ul1: 3,
_vl1: 4,
_wl1: 5,
_xl1: 6,
_yl1: 7,
_zl1: 8,
_ej1: 0,
_gj1: 1,
_jj1: 0,
_kj1: 1,
_dj1: 2,
_fj1: 3,
_Al1: 0,
_Bl1: 1,
_Wn: 0,
_Vn: 1,
_Cl1: 0,
_Dl1: 1,
_Lj1: 2,
_Kj1: function(_El1, _Fl1, _Gl1) {
if (!_El1) {
throw new _Xg(_Fl1)
}
}
};
Object.freeze(_4c);
function _Gh1(_Hl1) {
var _gh1 = this._Mh1;
var _Il1 = 0,
_Jl1 = 1,
_Kl1 = 2,
_Ll1 = 3,
_Ml1 = 4,
_Nl1 = 5,
_Ol1 = 6,
_Pl1 = 7,
_Ql1 = 8,
_Rl1 = 9,
_Sl1 = 10,
_Tl1 = 11,
_Ul1 = 12,
_Vl1 = 13,
_Wl1 = 14,
_Xl1 = 15,
_Yl1 = 16,
_Zl1 = 17,
__l1 = 18,
_0m1 = 19,
_1m1 = 20,
_2m1 = 21,
_3m1 = 22,
_4m1 = 23,
_5m1 = 24,
_6m1 = 25,
_7m1 = 26,
_8m1 = 27,
_9m1 = 28,
_am1 = 29;
_bm1 = 30;
var _cm1 = 0,
_dm1 = 1,
_em1 = 2,
_fm1 = 3,
_gm1 = 4,
_hm1 = 5;
var _im1 = 1,
_jm1 = 2,
_km1 = 4,
_lm1 = 8;
var _mm1 = [];
var _nm1 = [],
_om1,
_pm1;
var _qm1, _rm1 = [],
_sm1 = [],
_tm1 = [],
_um1 = new Float32Array(_4c._Ck1 * 4),
_vm1 = new Float32Array(_4c._Ck1 * 4),
_wm1 = new Float32Array(_4c._Ck1 * 4),
_xm1 = new Float32Array(4),
_ym1 = new Float32Array(8),
_zm1 = !1,
_Am1 = 0.0,
_Bm1;
var _jh1 = 0,
_Cm1;
Object.defineProperties(this, {
_F8: {
get: function() {
return _jh1
},
set: function(_cf) {
_jh1 = _cf
}
},
_xk1: {
get: function() {
return _Cm1
},
set: function(_cf) {
_Cm1 = _cf
}
}
}); (function() {
_Dm1();
var _Eh1 = _gh1.getParameter(_gh1.MAX_TEXTURE_IMAGE_UNITS);
if (_Eh1 > _4c._Fh1) {
_Eh1 = _4c._Fh1
}
for (var _Ei1 = 0; _Ei1 < _Eh1; _Ei1++) {
_tm1[_Ei1] = new _Ph1(_Hl1)
}
var _Em1 = _Fm1(_4c._kl1);
_Bm1 = {
_6r: 0,
_Gm1: 0xffffffff,
_Hm1: 0xffffffff,
_Im1: _Jm1(_4c._zl1),
_Km1: _Em1,
_Lm1: _Em1,
_Mm1: _Em1
};
for (var _H3 = 0; _H3 < _hm1; _H3++) {
_sm1[_H3] = new _Gn()
}
_gh1.disable(_gh1.CULL_FACE);
_gh1.disable(_gh1.DEPTH_TEST);
_gh1.enable(_gh1.BLEND);
_gh1.enable(_gh1.SCISSOR_TEST);
_gh1.blendFunc(_gh1.SRC_ALPHA, _gh1.ONE_MINUS_SRC_ALPHA);
_gh1.activeTexture(_gh1.TEXTURE0);
_gh1.frontFace(_gh1.CW);
_gh1.cullFace(_gh1.BACK);
})();
function _Dm1() {
_nm1 = [];
_pm1 = undefined;
_om1 = undefined;
_nm1[0] = 1;
_nm1[1] = 1
};
this._aP = function() {
_Dm1()
};
this._Dn = function(_Nm1) {
if (_Nm1 != _om1) {
_pm1 = null;
_mm1.push(_Zl1);
_mm1.push(_Nm1);
_om1 = _Nm1
}
};
this._Jj1 = function(_aj1, _Ye) {
if (_nm1[_aj1] == _Ye) {
return
}
_nm1[_aj1] = _Ye;
_mm1.push(_Jl1);
_mm1.push(_Ye);
_mm1.push(_aj1)
};
this._Hj1 = function(__p) {
_mm1.push(__p)
};
this._Ij1 = function(_Ye, _V8, _W8, _fh1) {
_mm1.push(_bm1);
_mm1.push(_Ye);
_mm1.push(_V8);
_mm1.push(_W8);
_mm1.push(_fh1)
};
this._Om1 = function(_Pm1) {
if (_pm1 == _Pm1) return;
_pm1 = _Pm1;
_mm1.push(_Ul1);
_mm1.push(_Pm1)
};
this._Qm1 = function(_Rm1, _Sm1) {
_mm1.push(_Kl1);
_mm1.push(_Rm1);
_mm1.push(_Sm1)
};
this._Tm1 = function(_Rm1, _Sm1) {
_mm1.push(_Ll1);
_mm1.push(_Rm1);
_mm1.push(_Sm1)
};
this._Um1 = function(_Rm1, _Sm1) {
_mm1.push(_Ml1);
_mm1.push(_Rm1);
_mm1.push(_Sm1)
};
this._Vm1 = function(_Rm1, _Sm1) {
_mm1.push(_Nl1);
_mm1.push(_Rm1);
_mm1.push(_Sm1)
};
this._Wm1 = function(_Rm1, _Sm1) {
_mm1.push(_Ol1);
_mm1.push(_Rm1);
_mm1.push(_Sm1)
};
this._S21 = function(_Rm1, _Sm1) {
_mm1.push(_Pl1);
_mm1.push(_Rm1);
_mm1.push(_Sm1)
};
this._Nj1 = function(_Vl) {
_mm1.push(_Rl1);
_mm1.push(new _Gn(_Vl))
};
this._Mj1 = function(_Vl) {
_mm1.push(_Sl1);
_Xm1 = new _Gn(_Vl);
_mm1.push(new _Gn(_Vl))
};
this._Pj1 = function(_Vl) {
_mm1.push(_Ql1);
_mm1.push(new _Gn(_Vl))
};
this._ai1 = function(_V8, _W8, _vh, _wh) {
_mm1.push(_Tl1);
_mm1.push(_V8);
_mm1.push(_W8);
_mm1.push(_vh);
_mm1.push(_wh)
};
this._Tj1 = function(_Ym1, _Sd) {
_mm1.push(_Vl1);
_mm1.push(_Ym1);
_mm1.push(~~_Sd)
};
this._Wj1 = function(_Zm1) {
_mm1.push(_Wl1);
_mm1.push(_Zm1)
};
this.__m1 = function(_Gd, _Uu, _Vu, _Wu) {
_mm1.push(_Xl1);
_mm1.push(_Gd);
_mm1.push(_Uu);
_mm1.push(_Vu);
_mm1.push(_Wu)
};
this._Mi1 = function(_zh, _Ni1) {
_mm1.push(_Yl1);
_mm1.push(_zh);
_mm1.push(_Ni1)
};
this._zj1 = function(_0n1, _Bj1) {
_mm1.push(__l1);
_mm1.push(_0n1);
_mm1.push(_Bj1)
};
this._Cj1 = function(_0n1, _Bj1) {
_mm1.push(_0m1);
_mm1.push(_0n1);
_mm1.push(_Bj1)
};
this._Ej1 = function(_0n1, _Bj1, _Fj1) {
_mm1.push(_1m1);
_mm1.push(_0n1);
_mm1.push(_Bj1);
_mm1.push(_Fj1)
};
this._Gj1 = function(_0n1, _Bj1, _Fj1) {
_mm1.push(_2m1);
_mm1.push(_0n1);
_mm1.push(_Bj1);
_mm1.push(_Fj1)
};
this._Dj1 = function(_0n1, _Bj1) {
_mm1.push(_3m1);
_mm1.push(_0n1);
_mm1.push(_Bj1)
};
this._Pi1 = function(_1n1, _2n1) {
_mm1.push(_4m1);
_mm1.push(_1n1);
_mm1.push(_2n1)
};
this._cj1 = function(_aj1, _3n1, _4n1) {
_mm1.push(_5m1);
_mm1.push(_aj1);
_mm1.push(_3n1);
_mm1.push(_4n1)
};
this._no = function(_Dk, _5n1, _6n1, _7n1) {
_mm1.push(_6m1);
_mm1.push(_Dk);
_mm1.push(new Float32Array(_5n1));
_mm1.push(new Float32Array(_6n1));
_mm1.push(new Float32Array(_7n1))
};
this._4j1 = function(_b5) {
_mm1.push(_7m1);
_mm1.push(new Float32Array(_b5));
};
this._6j1 = function(_8n1) {
_mm1.push(_8m1);
_mm1.push(new Float32Array(_8n1))
};
this._po = function(_Dk, enable, _b5) {
_mm1.push(_9m1);
_mm1.push(_Dk);
_mm1.push(enable);
_mm1.push(_b5)
};
this._7j1 = function(_Bn, _9n1) {
_mm1.push(_am1);
_mm1.push(_Bn);
_mm1.push(_9n1)
};
function _an1(_bt) {
switch (_bt) {
case _4c._Qk1:
return _gh1.ZERO;
case _4c._Rk1:
return _gh1.ONE;
case _4c._Sk1:
return _gh1.SRC_COLOR;
case _4c._Tk1:
return _gh1.ONE_MINUS_SRC_COLOR;
case _4c._Uk1:
return _gh1.SRC_ALPHA;
case _4c._Vk1:
return _gh1.ONE_MINUS_SRC_ALPHA;
case _4c._Wk1:
return _gh1.ONE_MINUS_DST_ALPHA;
case _4c._Xk1:
return _gh1.DST_ALPHA;
case _4c._Yk1:
return _gh1.DST_COLOR;
case _4c._Zk1:
return _gh1.ONE_MINUS_DST_COLOR;
case _4c.__k1:
return _gh1.SRC_ALPHA_SATURATE;
case _4c._0l1:
return 0;
case _4c._1l1:
return 0;
case _4c._2l1:
return 0;
case _4c._3l1:
return 0;
case _4c._4l1:
return 0;
case _4c._5l1:
return 0
}
return 0
}
function _Fm1(_bt) {
switch (_bt) {
case _4c._kl1:
return _gh1.KEEP;
case _4c._ll1:
return _gh1.ZERO;
case _4c._ml1:
return _gh1.REPLACE;
case _4c._nl1:
return _gh1.INCR;
case _4c._ol1:
return _gh1.DECR;
case _4c._pl1:
return _gh1.INVERT;
case _4c._ql1:
return _gh1.INCR;
case _4c._rl1:
return _gh1.DECR;
default:
return _gh1.KEEP
}
}
function _Jm1(_bt) {
switch (_bt) {
case _4c._sl1:
return _gh1.NEVER;
case _4c._tl1:
return _gh1.LESS;
case _4c._ul1:
return _gh1.EQUAL;
case _4c._vl1:
return _gh1.LEQUAL;
case _4c._wl1:
return _gh1.GREATER;
case _4c._xl1:
return _gh1.NOTEQUAL;
case _4c._yl1:
return _gh1.GEQUAL;
case _4c._zl1:
default:
return _gh1.ALWAYS
}
}
function _bn1(_1n1, _2n1) {
switch (_1n1) {
case _4c._Qi1:
if (_2n1) {
_gh1.enable(_gh1.DEPTH_TEST)
} else {
_gh1.disable(_gh1.DEPTH_TEST);
}
break;
case _4c._Ui1:
_gh1.depthMask(_2n1);
break;
case _4c._Ti1:
_gh1.frontFace((_2n1 === _4c._Wn) ? _gh1.CW: _gh1.CCW);
break;
case _4c._Ri1:
if (_2n1) {
_gh1.enable(_gh1.CULL_FACE)
} else {
_gh1.disable(_gh1.CULL_FACE)
}
break;
case _4c.__i1:
_gh1.colorMask(_2n1._xk, _2n1._yk, _2n1._zk, _2n1.alpha);
break;
case _4c._nj1:
if (_2n1) {
_gh1.enable(_gh1.STENCIL_TEST)
} else {
_gh1.disable(_gh1.STENCIL_TEST)
}
break;
case _4c._fl1:
_Bm1._Km1 = _Fm1(_2n1);
_gh1.stencilOp(_Bm1._Km1, _Bm1._Lm1, _Bm1._Mm1);
break;
case _4c._gl1:
_Bm1._Lm1 = _Fm1(_2n1);
_gh1.stencilOp(_Bm1._Km1, _Bm1._Lm1, _Bm1._Mm1);
break;
case _4c._sj1:
_Bm1._Mm1 = _Fm1(_2n1);
_gh1.stencilOp(_Bm1._Km1, _Bm1._Lm1, _Bm1._Mm1);
break;
case _4c._pj1:
_Bm1._Im1 = _Jm1(_2n1);
_gh1.stencilFunc(_Bm1._Im1, _Bm1._6r, _Bm1._Gm1);
break;
case _4c._vj1:
_Bm1._6r = _2n1;
_gh1.stencilFunc(_Bm1._Im1, _Bm1._6r, _Bm1._Gm1);
break;
case _4c._hl1:
_Bm1._Gm1 = _2n1;
_gh1.stencilFunc(_Bm1._Im1, _Bm1._6r, _Bm1._Gm1);
break;
case _4c._il1:
_gh1.stencilMask(_2n1);
break
}
}
function _cn1() {
if (_qm1 && _qm1._li1) {
_sm1[_fm1]._Vo(_sm1[_em1], _sm1[_cm1]);
_sm1[_gm1]._Vo(_sm1[_fm1], _sm1[_dm1]);
var _dn1 = new Float32Array(16 * _hm1);
for (var _H3 = 0; _H3 < _hm1; _H3++) {
_dn1.set(_sm1[_H3]._F9, _H3 * 16)
}
_gh1.uniformMatrix4fv(_qm1._li1, _gh1._en1, _dn1)
}
}
function _fn1(_gn1) {
if (_gn1 & _lm1) {
if (_qm1._ni1 !== undefined) {
_gh1.uniform1i(_qm1._ni1, _zm1)
}
if (_qm1._oi1 !== undefined) {
_gh1.uniform1f(_qm1._oi1, _Am1)
}
}
if ((_gn1 & _im1) && (_qm1._mi1 !== undefined)) {
_gh1.uniform4fv(_qm1._mi1, _ym1)
}
if (_gn1 & _jm1) {
if (_qm1._ri1 !== undefined) {
_gh1.uniform4fv(_qm1._ri1, _um1)
}
if (_qm1._qi1 !== undefined) {
_gh1.uniform4fv(_qm1._qi1, _vm1);
}
if (_qm1._si1 !== undefined) {
_gh1.uniform4fv(_qm1._si1, _wm1)
}
}
if ((_gn1 & _km1) && (_qm1._ti1 !== undefined)) {
_gh1.uniform4fv(_qm1._ti1, _xm1)
}
}
function _hn1(_Ye, _aj1) {
if (_Ye === null || _Ye === undefined) {
return
}
var _in1 = _tm1[_aj1];
if (_in1 === null || _in1 === undefined) {
return
}
var _jn1 = _in1._kn1;
var _ln1 = _Ye._mn1._kn1;
if (_jn1[_4c._jj1] != _ln1[_4c._jj1]) {
_gh1.texParameteri(_gh1.TEXTURE_2D, _gh1.TEXTURE_MAG_FILTER, (_jn1[_4c._jj1] == _4c._Al1) ? _gh1.LINEAR: _gh1.NEAREST);
_ln1[_4c._jj1] = _jn1[_4c._jj1]
}
if (_jn1[_4c._kj1] != _ln1[_4c._kj1]) {
_gh1.texParameteri(_gh1.TEXTURE_2D, _gh1.TEXTURE_MIN_FILTER, (_jn1[_4c._kj1] == _4c._Al1) ? _gh1.LINEAR: _gh1.NEAREST);
_ln1[_4c._kj1] = _jn1[_4c._kj1]
}
if (_jn1[_4c._dj1] != _ln1[_4c._dj1]) {
if (_Ye._nn1) {
var _on1 = (_jn1[_4c._dj1] == _4c._gj1) ? _gh1.CLAMP_TO_EDGE: _gh1.REPEAT;
_gh1.texParameteri(_gh1.TEXTURE_2D, _gh1.TEXTURE_WRAP_S, _on1)
} else {
debug("WARNING: Non-pow2 texture for TEXTURE_WRAP_S")
}
_ln1[_4c._dj1] = _jn1[_4c._dj1]
}
if (_jn1[_4c._fj1] != _ln1[_4c._fj1]) {
if (_Ye._nn1) {
var _on1 = (_jn1[_4c._fj1] == _4c._gj1) ? _gh1.CLAMP_TO_EDGE: _gh1.REPEAT;
_gh1.texParameteri(_gh1.TEXTURE_2D, _gh1.TEXTURE_WRAP_T, _on1)
} else {
debug("WARNING: Non-pow2 texture for TEXTURE_WRAP_T")
}
_ln1[_4c._fj1] = _jn1[_4c._fj1]
}
}
this._Li1 = function() {
var _H3, error, _gr, _Fi1, _pn1, _Ei1, _Ga, _Dk, _1b, enable;
_H3 = 0;
while (_H3 < _mm1.length) {
switch (_mm1[_H3]) {
case _Zl1:
{
var _yi1 = _mm1[_H3 + 1];
_H3 += 2;
_qm1 = _yi1;
_gh1.useProgram(_qm1);
_cn1();
_fn1(0xff);
break
}
case _Tl1:
{
_gh1.viewport(_mm1[_H3 + 1], _mm1[_H3 + 2], _mm1[_H3 + 3], _mm1[_H3 + 4]);
_gh1.scissor(_mm1[_H3 + 1], _mm1[_H3 + 2], _mm1[_H3 + 3], _mm1[_H3 + 4]);
_H3 += 5;
break
}
case _Vl1:
{
_1b = _mm1[_H3 + 2];
_gh1.clearColor((_1b & 0xff) / 255.0, ((_1b >> 8) & 0xff) / 255.0, ((_1b >> 16) & 0xff) / 255.0, ((_1b >> 24) & 0xff) / 255.0);
_gh1.clear(_mm1[_H3 + 1]);
_H3 += 3;
break
}
case _Rl1:
{
_sm1[_dm1] = _mm1[_H3 + 1];
_cn1();
_H3 += 2;
break
}
case _Sl1:
{
_sm1[_cm1] = _mm1[_H3 + 1];
_cn1();
_H3 += 2;
break
}
case _Ql1:
{
_sm1[_em1] = _mm1[_H3 + 1];
_cn1();
_H3 += 2;
break
}
case _Jl1:
{
_Ga = _mm1[_H3 + 1];
_Ei1 = _mm1[_H3 + 2];
_H3 += 3;
if (_Ga === null) {
_Ga = _Cm1;
_gh1.activeTexture(_gh1.TEXTURE0 + _Ei1);
_gh1.bindTexture(_gh1.TEXTURE_2D, _Ga._fk1);
_gh1.uniform1i(_qm1._ki1, 0);
_rm1[_Ei1] = null
} else {
_gh1.activeTexture(_gh1.TEXTURE0 + _Ei1);
_gh1.bindTexture(_gh1.TEXTURE_2D, _Ga._fk1);
_gh1.uniform1i(_qm1._ki1, 0);
_hn1(_Ga, _Ei1);
_rm1[_Ei1] = _Ga
}
break
}
case _Ul1:
{
var _2c = _mm1[_H3 + 1];
_H3 += 2;
if (_2c._qn1) {
_2c._rn1()
}
_2c._sn1 = this._F8;
_gh1.bindBuffer(_gh1.ARRAY_BUFFER, _2c._tn1);
var _un1 = _2c._vn1;
for (var _C9 = 0; _C9 < _qm1._ji1.length; _C9++) {
if (_qm1._ji1[_C9] >= 0) {
var _wn1 = _un1._fe[_C9];
_gh1.enableVertexAttribArray(_qm1._ji1[_C9]);
_gh1.vertexAttribPointer(_qm1._ji1[_C9], _wn1._xn1, _wn1._yn1, _wn1._zn1, _un1._le, _wn1._L3)
}
}
}
break;
case _Kl1:
{
_gh1.drawArrays(_gh1.TRIANGLES, _mm1[_H3 + 1], _mm1[_H3 + 2]);
_H3 += 3;
break
}
case _Ll1:
{
_gh1.drawArrays(_gh1.TRIANGLE_FAN, _mm1[_H3 + 1], _mm1[_H3 + 2]);
_H3 += 3;
break
}
case _Ml1:
{
_gh1.drawArrays(_gh1.TRIANGLE_STRIP, _mm1[_H3 + 1], _mm1[_H3 + 2]);
_H3 += 3;
break
}
case _Nl1:
{
_gh1.drawArrays(_gh1.LINES, _mm1[_H3 + 1], _mm1[_H3 + 2]);
_H3 += 3;
break
}
case _Ol1:
{
_gh1.drawArrays(_gh1.LINE_STRIP, _mm1[_H3 + 1], _mm1[_H3 + 2]);
_H3 += 3;
break
}
case _Pl1:
{
_gh1.drawArrays(_gh1.POINTS, _mm1[_H3 + 1], _mm1[_H3 + 2]);
_H3 += 3;
break
}
case _Wl1:
{
_gh1.bindFramebuffer(_gh1.FRAMEBUFFER, _mm1[_H3 + 1]);
_H3 += 2;
break
}
case _Xl1:
{
_gh1.colorMask(_mm1[_H3 + 2], _mm1[_H3 + 3], _mm1[_H3 + 4], _mm1[_H3 + 1]);
_H3 += 5;
break
}
case _Yl1:
{
_gh1.blendFunc(_an1(_mm1[_H3 + 1]), _an1(_mm1[_H3 + 2]));
_H3 += 3;
break
}
case _4m1:
{
var _An1 = _mm1[_H3 + 1];
var _Bn1 = _mm1[_H3 + 2];
_H3 += 3;
_bn1(_An1, _Bn1);
break
}
case __l1:
{
_gr = _mm1[_H3 + 1];
_Fi1 = _mm1[_H3 + 2];
_H3 += 3;
switch (_Fi1.length) {
case 1:
_gh1.uniform1iv(_gr, _Fi1);
break;
case 2:
_gh1.uniform2iv(_gr, _Fi1);
break;
case 3:
_gh1.uniform3iv(_gr, _Fi1);
break;
case 4:
_gh1.uniform4iv(_gr, _Fi1);
break
}
break
}
case _0m1:
{
_gr = _mm1[_H3 + 1];
_Fi1 = _mm1[_H3 + 2];
_H3 += 3;
switch (_Fi1.length) {
case 1:
_gh1.uniform1fv(_gr, _Fi1);
break;
case 2:
_gh1.uniform2fv(_gr, _Fi1);
break;
case 3:
_gh1.uniform3fv(_gr, _Fi1);
break;
case 4:
_gh1.uniform4fv(_gr, _Fi1);
break
}
break
}
case _1m1:
{
_gr = _mm1[_H3 + 1];
_Fi1 = _mm1[_H3 + 2];
_pn1 = _mm1[_H3 + 3];
_H3 += 4;
switch (_pn1) {
case 1:
_gh1.uniform1iv(_gr, _Fi1);
break;
case 2:
_gh1.uniform2iv(_gr, _Fi1);
break;
case 3:
_gh1.uniform3iv(_gr, _Fi1);
break;
case 4:
_gh1.uniform4iv(_gr, _Fi1);
break
}
break
}
case _2m1:
{
_gr = _mm1[_H3 + 1];
_Fi1 = _mm1[_H3 + 2];
_pn1 = _mm1[_H3 + 3];
_H3 += 4;
switch (_pn1) {
case 1:
_gh1.uniform1fv(_gr, _Fi1);
break;
case 2:
_gh1.uniform2fv(_gr, _Fi1);
break;
case 3:
_gh1.uniform3fv(_gr, _Fi1);
break;
case 4:
_gh1.uniform4fv(_gr, _Fi1);
break
}
break
}
case _3m1:
{
_gr = _mm1[_H3 + 1];
_Fi1 = _mm1[_H3 + 2];
_H3 += 3;
switch (_Fi1.length) {
case 2:
_gh1.uniformMatrix2fv(_gr, !1, _Fi1);
break;
case 3:
_gh1.uniformMatrix3fv(_gr, !1, _Fi1);
break;
case 4:
_gh1.uniformMatrix4fv(_gr, !1, _Fi1);
break
}
break
}
case _5m1:
{
_Ei1 = _mm1[_H3 + 1];
var _Lz = _mm1[_H3 + 2];
var _Cn1 = _mm1[_H3 + 3];
_H3 += 4;
var _in1 = _tm1[_Ei1];
_in1._kn1[_Lz] = _Cn1;
_hn1(_rm1[_Ei1], _Ei1);
break
}
case _6m1:
{
_Dk = _mm1[_H3 + 1];
_um1.set(_mm1[_H3 + 2], _Dk * 4);
_vm1.set(_mm1[_H3 + 3], _Dk * 4);
_wm1.set(_mm1[_H3 + 4], _Dk * 4);
_H3 += 5;
_fn1(_jm1);
break
}
case _7m1:
{
_xm1.set(_mm1[_H3 + 1]);
_H3 += 2;
_fn1(_km1);
break
}
case _8m1:
{
_ym1.set(_mm1[_H3 + 1]);
_H3 += 2;
_fn1(_im1);
break
}
case _9m1:
{
_Dk = _mm1[_H3 + 1];
enable = _mm1[_H3 + 2];
_1b = _mm1[_H3 + 3];
_H3 += 4;
if (enable) {
_wm1.set(_1b, _Dk * 4)
} else {
var _go = _Dk * 4;
_wm1[_go + 0] = 0;
_wm1[_go + 1] = 0;
_wm1[_go + 2] = 0;
_wm1[_go + 3] = 0
}
_fn1(_jm1);
break
}
case _am1:
{
_zm1 = _mm1[_H3 + 1];
_Am1 = _mm1[_H3 + 2];
_H3 += 3;
_fn1(_lm1);
break
}
case _bm1:
{
_Ga = _mm1[_H3 + 1];
var _0a = _mm1[_H3 + 2];
var _2a = _mm1[_H3 + 3];
var canvas = _mm1[_H3 + 4];
_H3 += 5;
_gh1.activeTexture(_gh1.TEXTURE0);
_gh1.bindTexture(_gh1.TEXTURE_2D, _Ga._fk1);
_gh1.texSubImage2D(_gh1.TEXTURE_2D, 0, _0a, _2a, _gh1.RGBA, _gh1.UNSIGNED_BYTE, canvas);
if (_rm1.length > 0) {
_gh1.bindTexture(_gh1.TEXTURE_2D, _rm1[0]._fk1)
}
break
}
}
}
_mm1.length = 0
}
}
function _Nh1(_Dn1, _Aa, _Ba, _En1) {
var _gh1 = this._Mh1;
var _Fn1, _Gn1, _Hn1, _In1, _Jn1;
Object.defineProperties(this, {
_mn1: {
get: function() {
return _Fn1
}
},
_fk1: {
get: function() {
return _Gn1
}
},
_gk1: {
get: function() {
return _Hn1
}
},
_hk1: {
get: function() {
return _In1
}
},
_nn1: {
get: function() {
return _Jn1
}
}
}); (function() {
_Gn1 = _Dn1;
_Hn1 = _Aa;
_In1 = _Ba;
_Jn1 = _En1;
_Fn1 = new _Ph1();
_Fn1._Kn1(_gh1.TEXTURE_2D)
})()
}
function _Ph1(_Hl1) {
var _gh1 = this._Mh1;
var _Ln1 = [];
Object.defineProperties(this, {
_kn1: {
get: function() {
return _Ln1
}
}
}); (function() {
if (_Hl1) {
_Ln1[_4c._jj1] = _4c._Al1;
_Ln1[_4c._kj1] = _4c._Al1
} else {
_Ln1[_4c._jj1] = _4c._Bl1;
_Ln1[_4c._kj1] = _4c._Bl1
}
_Ln1[_4c._dj1] = _4c._gj1;
_Ln1[_4c._fj1] = _4c._gj1
})();
this._Kn1 = function(_xJ) {
var _Mn1 = _Ln1;
_gh1.texParameteri(_xJ, _gh1.TEXTURE_MAG_FILTER, (_Mn1[_4c._jj1] == _4c._Al1) ? _gh1.LINEAR: _gh1.NEAREST);
_gh1.texParameteri(_xJ, _gh1.TEXTURE_MIN_FILTER, (_Mn1[_4c._kj1] == _4c._Al1) ? _gh1.LINEAR: _gh1.NEAREST);
_gh1.texParameteri(_xJ, _gh1.TEXTURE_WRAP_S, (_Mn1[_4c._dj1] == _4c._gj1) ? _gh1.CLAMP_TO_EDGE: _gh1.REPEAT);
_gh1.texParameteri(_xJ, _gh1.TEXTURE_WRAP_T, (_Mn1[_4c._fj1] == _4c._gj1) ? _gh1.CLAMP_TO_EDGE: _gh1.REPEAT)
}
}
function _wd(__d, _Nn1, _On1) {
var _gh1 = this._Mh1;
this._Pn1;
this._Jd;
this._tn1;
this._bc;
this._dc;
this._Rd;
this._fc;
this._vn1 = _Nn1;
this._sn1 = -1;
this._9c = 0;
this._Qn1 = __d;
this._qn1 = !1;
_Rn1(this);
function _Rn1(_zH) {
_Sn1(_zH);
_Tn1(_zH);
if (_On1) {
_Un1(_zH)
}
}
function _Sn1(_zH) {
var _Vn1 = _zH._vn1._le;
_zH._Pn1 = new ArrayBuffer(__d * _Vn1);
_zH._Jd = new Int8Array(_zH._Pn1)
}
function _Un1(_zH) {
_zH._tn1 = _gh1.createBuffer();
_gh1.bindBuffer(_gh1.ARRAY_BUFFER, _zH._tn1);
_gh1.bufferData(_gh1.ARRAY_BUFFER, _zH._Jd, _gh1.DYNAMIC_DRAW)
}
function _Tn1(_zH) {
var _Wn1 = _zH._vn1._fe;
for (var _C9 = 0; _C9 < _Wn1.length; _C9++) {
var _wn1 = _Wn1[_C9];
switch (_wn1._he) {
case _4c._ue:
_zH._bc = _Xn1(_wn1._yn1, _zH._Pn1, _wn1._L3);
break;
case _4c._ze:
_zH._dc = _Xn1(_wn1._yn1, _zH._Pn1, _wn1._L3);
break;
case _4c._Je:
_zH._Rd = _Xn1(_wn1._yn1, _zH._Pn1, _wn1._L3);
break;
case _4c._He:
_zH._fc = _Xn1(_wn1._yn1, _zH._Pn1, _wn1._L3);
break
}
}
}
function _Xn1(_Yn1, _Zn1, __n1) {
switch (_Yn1) {
case _gh1.UNSIGNED_BYTE:
return (new Int32Array(_Zn1, __n1));
break;
case _gh1.FLOAT:
return (new Float32Array(_Zn1, __n1));
break
}
return ! 1
}
this._0o1 = function(_zk1) {
if (_zk1._8c() === this._8c()) {
var _Ue = _zk1._9c * _zk1._8c();
var _L3 = this._9c * this._8c();
if ((_L3 + _Ue) > this._Jd.length) {
var _1o1 = new ArrayBuffer(this._Jd.length * 2);
var _Id = new Int8Array(_1o1);
_Id.set(this._Jd);
this._Jd = _Id;
this._Pn1 = _1o1;
_Tn1(this)
}
this._Jd.set(_zk1._Jd.subarray(0, _Ue), _L3);
this._9c += _zk1._9c
}
};
this._Se = function() {
if (this._9c < this.max) {
var _Ue = this._9c * this._8c();
var _2o1 = new ArrayBuffer(_Ue);
var _3o1 = new Int8Array(_2o1);
_3o1.set(this._Jd.subarray(0, _Ue));
this._Jd = _3o1;
this._Pn1 = _2o1
}
this._tn1 = _gh1.createBuffer();
_gh1.bindBuffer(_gh1.ARRAY_BUFFER, this._tn1);
_gh1.bufferData(_gh1.ARRAY_BUFFER, this._Jd, _gh1.STATIC_DRAW);
this._bc = null;
this._dc = null;
this._Rd = null;
this._fc = null
};
this._zd = function(_4o1) {
if ((this._9c + _4o1) > this.max) {
var _5o1 = this.max * 2;
this.max = _5o1;
var _ne = new ArrayBuffer(_5o1);
var _pe = new Int8Array(_ne);
_pe.set(this._Jd);
this._Pn1 = _ne;
_Tn1(this)
}
this._9c += _4o1
};
this._8c = function() {
return this._vn1._le
};
this._rn1 = function() {
_gh1.bindBuffer(_gh1.ARRAY_BUFFER, this._tn1);
var _6o1 = new Int8Array(this._Pn1, 0, this._9c * this._vn1._le);
_gh1.bufferSubData(_gh1.ARRAY_BUFFER, 0, _6o1);
this._9c = 0;
this._qn1 = !1
}
}
function _Ih1(_7o1) {
var _gh1 = this._Mh1;
var _8o1 = [];
var _9o1 = 0,
_nm1 = null,
_ao1 = null,
_bo1 = _4c._Dk1,
_om1 = null;
var _co1 = _7o1;
this._0i1 = function(_re) {
if (_8o1[_re]) {
debug("WARNING: Vertex format has already been registered\n")
} else {
_8o1[_re] = new _Th()
}
};
this._Bk1 = function(_nd, _Ye, _zk1, _Ak1) {
var _x3 = _zk1._9c - _Ak1;
switch (_nd) {
case _4c._5c:
_co1._Jj1(0, _Ye);
_co1._Om1(_zk1);
_co1._Qm1(_Ak1, _x3);
break;
case _4c._sd:
_co1._Jj1(0, _Ye);
_co1._Om1(_zk1);
_co1._Tm1(_Ak1, _x3);
break;
case _4c._rd:
_co1._Jj1(0, _Ye);
_co1._Om1(_zk1);
_co1._Um1(_Ak1, _x3);
break;
case _4c._pd:
_co1._Jj1(0, null);
_co1._Om1(_zk1);
_co1._Vm1(_Ak1, _x3);
break;
case _4c._qd:
_co1._Jj1(0, null);
_co1._Om1(_zk1);
_co1._Wm1(_Ak1, _x3);
break;
case _4c._od:
_co1._Jj1(0, null);
_co1._Om1(_zk1);
_co1._S21(_Ak1, _x3);
break
}
};
this._fi1 = function() {
if (_ao1 == null) return;
this._Bk1(_bo1, _nm1, _ao1, _9o1);
_ao1 = _nm1 = null;
_bo1 = _4c._Dk1
};
this._3c = function(_nd, _do1, _re, _eo1, _Nn1, _fo1) {
var _H3, _go1, _2c, _ho1;
_ho1 = _do1;
if (_ao1 != null) {
if ((_ao1._6i1 == _re) && ((_ao1._9c + _eo1) <= _ao1._Qn1) && (_nm1 == _ho1) && (_bo1 == _nd) && ((_nd != _4c._qd) && (_nd != _4c._rd) && (_nd != _4c._sd))) {
return _ao1
} else {
var _io1 = _ao1;
this._fi1();
if ((_io1._6i1 == _re) && ((_io1._9c + _eo1) <= _io1._Qn1)) {
_ao1 = _io1;
_9o1 = _io1._9c;
_bo1 = _nd;
_nm1 = _ho1;
return _ao1
}
}
}
_bo1 = _nd;
_nm1 = _ho1;
_go1 = _8o1[_re]._3i;
for (_H3 = _go1.length - 1; _H3 >= 0; _H3--) {
_2c = _go1[_H3];
if ((_2c._sn1 != _fo1) && (_2c._9c + _eo1) <= _2c._Qn1) {
_2c._qn1 = !0;
_9o1 = _2c._9c;
_ao1 = _2c;
return _2c
}
}
if (_eo1 < _xd) {
_eo1 = _xd
}
_2c = new _wd(_eo1, _Nn1, !0);
_2c._6i1 = _re;
_2c._qn1 = !0;
_9o1 = _2c._9c;
_ao1 = _2c;
_8o1[_re]._Wh(_2c);
return _2c
}
}
function _Oh1() {
var _gh1 = this._Mh1;
var _jo1 = 1;
var _ko1 = [],
_lo1 = 0,
_mo1 = 0;
Object.defineProperties(this, {
_fe: {
get: function() {
return _ko1
},
set: function(_cf) {
_ko1 = _cf
}
},
_ke: {
get: function() {
return _mo1
},
set: function(_cf) {
_mo1 = _cf
}
},
_le: {
get: function() {
return _lo1
},
set: function(_cf) {
_lo1 = _cf
}
}
});
function _Wh(_ce, _be, _no1) {
_mo1 |= _no1;
var _wn1 = {
_L3: _lo1,
type: _ce,
_he: _be,
_ie: _no1,
_yn1: 0,
_xn1: 0
};
switch (_ce) {
case _4c._Ae:
case _4c._Re:
_lo1 += 4;
_wn1._yn1 = _gh1.UNSIGNED_BYTE;
_wn1._xn1 = 4;
_wn1._zn1 = !0;
break;
case _4c._Le:
_lo1 += 4;
_wn1._yn1 = _gh1.FLOAT;
_wn1._xn1 = 1;
_wn1._zn1 = !1;
break;
case _4c._ve:
_lo1 += 8;
_wn1._yn1 = _gh1.FLOAT;
_wn1._xn1 = 2;
_wn1._zn1 = !1;
break;
case _4c._xe:
_lo1 += 12;
_wn1._yn1 = _gh1.FLOAT;
_wn1._xn1 = 3;
_wn1._zn1 = !1;
break;
case _4c._Pe:
_lo1 += 16;
_wn1._yn1 = _gh1.FLOAT;
_wn1._xn1 = 4;
_wn1._zn1 = !1;
break
}
_ko1.push(_wn1)
}
this._Yh1 = function() {
_Wh(_4c._ve, _4c._ue, _jo1);
_jo1 = _jo1 << 1
};
this._2i1 = function() {
_Wh(_4c._xe, _4c._ue, _jo1);
_jo1 = _jo1 << 1
};
this._Zh1 = function() {
_Wh(_4c._Ae, _4c._ze, _jo1);
_jo1 = _jo1 << 1
};
this._3i1 = function() {
_Wh(_4c._xe, _4c._Je, _jo1);
_jo1 = _jo1 << 1
};
this.__h1 = function() {
_Wh(_4c._ve, _4c._He, _jo1);
_jo1 = _jo1 << 1
};
this._oo1 = function(_ce, _be) {
if ((_ce < _4c._Le) || (_ce > _4c._Pk1)) {
debug("ERROR vertex_format_add_custom: illegal types");
return
}
if ((_be < _4c._ue) || (_be > _4c._Ok1)) {
debug("ERROR vertex_format_add_custom: illegal usage");
return
}
_Wh(_ce, _be, _jo1);
_jo1 = _jo1 << 1
};
this._gN = function(_5i1) {
if (_ko1.length !== _5i1._fe.length) {
return ! 1
}
for (var _H3 = 0; _H3 < _ko1.length; _H3++) {
var _po1 = _ko1[_H3];
var _qo1 = _5i1._fe[_H3];
if ((_po1._L3 !== _qo1._L3) || (_po1.type !== _qo1.type) || (_po1._he !== _qo1._he) || (_po1._ie !== _qo1._ie) || (_po1._yn1 !== _qo1._yn1) || (_po1._xn1 !== _qo1._xn1)) {
return ! 1
}
}
return ! 0
}
}
function _ro1() {
_Bx = _so1;
_Dx = _to1;
_Ex = _uo1;
_Fx = _vo1;
_Gx = _wo1;
_Bi = function() {
try {
return window["GetHardwareId"]()
} catch(e) {
var id = 0xFF5025da3ad78cac9;
return id.toString()
}
}
}
function _xo1() {
_Cx({
type: _px,
status: _ux
})
}
function _yo1() {
_Cx({
type: _px,
status: _vx
})
}
function _so1(_zo1) {
window["buildStoreProxyFile"](_zo1, _Ao1,
function() {
window["activateStore"](function() {
window["synchroniseProducts"](function(_Bo1) {
_Cx({
type: _qx,
_0y: _Bo1
})
},
function(_Bo1) {
_Cx({
type: _rx,
_0y: _Bo1
})
},
_yo1, _xo1)
},
_xo1)
},
_xo1)
}
function _to1() {
window["restorePurchases"](function(_Co1) {
_Cx({
type: _tx,
_8j: _Co1
})
})
}
function _uo1(_Ch, _Do1) {
window["purchaseContent"](_Ch, _Do1,
function(_Bo1) {
_Cx({
type: _rx,
_0y: _Bo1
})
},
function(_Bo1) {
_Cx({
type: _rx,
_0y: _Bo1
})
})
}
function _vo1(_Ch) {
window["consumeContent"](_Ch,
function(_Bo1) {
_Cx({
type: _sx,
_0y: _Bo1
})
},
function(_Bo1) {
_Cx({
type: _sx,
_0y: _Bo1
})
})
}
function _wo1(_Ch) {
var response = "{ \"response\":6 }";
_Cx({
type: _qx,
_0y: response
})
}
function _Ao1(_zo1, _Eo1) {
var _Fo1 = "\r\n" + "\r\n" + " \r\n" + " \r\n" + " 00000000-0000-0000-0000-000000000000\r\n" + " \r\n" + " en-US\r\n" + " 3\r\n" + " \r\n" + " In-app purchases\r\n" + " AppDescription\r\n" + " 0.99\r\n" + " $\r\n" + " USD\r\n" + " \r\n" + " \r\n";
var _Go1 = " \r\n" + " \r\n" + " PRODUCT_NAME\r\n" + " PRODUCT_PRICE\r\n" + " $\r\n" + " USD\r\n" + " \r\n" + " \r\n";
var _Ho1 = " \r\n" + " \r\n" + " \r\n" + " true\r\n" + " false\r\n" + " \r\n";
var _Io1 = " \r\n" + " PRODUCT_ACTIVE\r\n" + " \r\n";
var _Jo1 = " \r\n" + "\r\n";
var _Ko1 = _Fo1;
for (var _mv = 0; _mv < _zo1.length; _mv++) {
var product = _zo1[_mv];
var _Jx = "1.00";
if ((product._Jx != null) && (product._Jx != undefined) && (product._Jx != "")) {
_Jx = product._Jx;
if (typeof(_Jx) == "number") {
_Jx = _Jx.toString()
}
_Jx = _Jx.replace("$", "");
_Jx = _Jx.replace("�", "")
}
var _Lo1 = _Go1.replace("PRODUCT_ID", product._Ix);
_Lo1 = _Lo1.replace("PRODUCT_NAME", product.title);
_Lo1 = _Lo1.replace("PRODUCT_PRICE", _Jx);
_Ko1 += _Lo1
}
_Ko1 += _Ho1;
for (var _mv = 0; _mv < _zo1.length; _mv++) {
var product = _zo1[_mv];
var _Mo1 = _Eo1[product._Ix];
var _No1 = (_Mo1 == null || _Mo1 == undefined) ? !1 : _Mo1;
var _Oo1 = _Io1.replace("PRODUCT_ID", product._Ix).replace("PRODUCT_ACTIVE", _No1 ? "true": "false");
_Ko1 += _Oo1
}
_Ko1 += _Jo1;
return _Ko1
}
var _Po1 = null;;
function _Qo1() {
_Ro1 = !1;
if (_Up) {
var _So1 = _Up.document.getElementById('debug_console');
if ((_So1 != undefined) && (_So1 != null)) {
_So1.style.display = "none"
}
}
_bI = canvas.width = window.outerWidth;
_cI = canvas.height = window.outerHeight;
_To1 = !0
}
var _Uo1 = [];
function _Vo1(_Zg) {
for (var _Wo1 = 0; _Wo1 < _Uo1.length; _Wo1++) {
if (_Uo1[_Wo1] === _Zg) {
return _Wo1
}
}
return - 1
}
function _Xo1(_Yo1) {
var _0h = -1;
var _Zo1 = !0;
for (var _Wo1 = 0; _Wo1 < _Uo1.length; _Wo1++) {
if (_Uo1[_Wo1] !== -1) {
_Zo1 = !1;
break
}
}
for (var _Wo1 = 0; _Wo1 < _Uo1.length; _Wo1++) {
if (_Wo1 === 0 && _Zo1 === !1) {
continue
}
if ((_Uo1[_Wo1] === _Yo1) || (_Uo1[_Wo1] === -1)) {
_0h = _Wo1;
break
}
}
if (_0h == -1) {
_0h = _Uo1.length
}
_Uo1[_0h] = _Yo1;
_1h[_0h] = new _Gg();
return _0h
}
function __o1(_0p1, _V8, _W8) {
var _0h = _Vo1(_0p1);
if (_0h == 0) {
return
}
if (_0h == -1) {
_0h = _1p1(_0p1, _V8, _W8)
} else {
if (_0h == 0) {
if (_dh != null) {
_eh = _V8;
_fh = _W8
}
_gh = 1
}
_1h[_0h]._f3 = _V8;
_1h[_0h]._g3 = _W8;
_hh[_0h]._f3 = _V8;
_hh[_0h]._g3 = _W8
}
}
function _1p1(_0p1, _V8, _W8) {
var _0h = _Xo1(_0p1);
if (_0h == 0) {
return
}
if (_0h == 0) {
if (_dh != null) {
_eh = _V8;
_fh = _W8
}
_gh = 1
}
_1h[_0h]._f3 = _V8;
_1h[_0h]._g3 = _W8;
_hh[_0h]._f3 = _V8;
_hh[_0h]._g3 = _W8;
_1h[_0h]._nf = 1;
_hh[_0h]._ih = _jh | _kh | _lh;
return _0h
}
function _2p1(_0p1, _V8, _W8) {
var _0h = _Vo1(_0p1);
_Uo1[_0h] = -1;
if (_0h == 0) {
return
}
if (_0h == 0) {
if (_dh != null) {
_eh = _V8;
_fh = _W8
}
_gh = 0
}
_1h[_0h]._f3 = _V8;
_1h[_0h]._g3 = _W8;
_hh[_0h]._f3 = _V8;
_hh[_0h]._g3 = _W8;
_1h[_0h]._nf = 0;
_hh[_0h]._ih = 0
}
function _3p1(_0p1, _V8, _W8) {
var _0h = _Vo1(_0p1);
_2p1(_0p1, _V8, _W8)
}
function gse(_4p1, _5p1) {
switch (_4p1) {
case "resize":
return _Qo1;
case "loading":
if (!_Yp._A5._6p1) {
_7p1 = _5p1;
return ! 0
}
return ! 1;
case "onloaded":
if (!_Yp._A5._6p1) {
_8p1 = _5p1
}
break;
case "console":
if (!_Yp._A5._6p1) {
_9p1 = function() {};
_ap1 = function() {}
}
debug = _bp1;
_Zp = _cp1;
break;
case "pause":
_dp1(_5p1);
break;
case "mousescale":
_ep1 = function(_fp1) {
var _E3 = canvas.width / window.outerWidth;
var _F3 = canvas.height / window.outerHeight;
_eh = _fp1.pageX * _E3;
_fh = _fp1.pageY * _F3;
_hh[_fp1.button]._f3 = _eh;
_hh[_fp1.button]._g3 = _fh
};
break;
case "ontouchmove":
__o1(arguments[1], arguments[2], arguments[3]);
break;
case "ontouchdown":
_1p1(arguments[1], arguments[2], arguments[3]);
break;
case "ontouchup":
_2p1(arguments[1], arguments[2], arguments[3]);
break;
case "ontouchcancel":
_3p1(arguments[1], arguments[2], arguments[3]);
break;
case "browser":
_yz = _gp1;
_hp1 = _ip1;
_zJ = arguments[1];
_jp1 = _kp1;
_lp1 = _mp1;
break;
case "cmd_line":
_np1(arguments[1]);
break;
case "iap":
_ro1();
break;
case "async":
_op1(arguments[1]);
break;
case "dpi":
_Gu = _Hu = arguments[1];
break;
case "language":
_zt = arguments[1];
break;
case "ads":
_KJ = arguments[1];
_LJ = arguments[2];
_MJ = arguments[3];
return _pp1;
case "analytics":
_Nt = arguments[1];
_Ot = arguments[2];
return _qp1;
}
}
function _pp1(_7z) {
if (_Yp._rp1) {
var _sp1 = {
"appId": _Yp._rp1._tp1,
"unitId": _Yp._rp1._up1[_7z]._vp1,
"size": _Yp._rp1._up1[_7z]._x3
};
return _sp1
}
return null
}
function _qp1() {
if (_Yp._wp1) {
return _Yp._wp1._tp1
}
return null
}
function _np1(_xp1) {
if (_xp1 == "" || _xp1 == null || _xp1 == undefined) {
return
}
try {
var __h = _xp1.split('&');
for (var _yp1 in __h) {
var _BR = __h[_yp1].split('=');
_zp1[_zp1.length] = _BR[0];
_Ap1[_Ap1.length] = _BR[1];
_Bp1++
}
} catch(e) {
alert(e._Cp1 + ". Malformed command line parameters: \"" + _xp1 + "\"")
}
}
function _op1(_Dp1) {
_Fq = function(_bq) {
_fq = "win8AsyncMessageDialog";
_xq._Wh(_bq.id, null, _yq, _fq);
_Dp1[0](_bq._kq[0],
function() {
var _nq = _oq(_fq);
if (!_nq) return;
_nq._lq = "";
_nq._mq = "";
_nq.value = 0;
_nq._8j = "";
_nq._pq = !0;
_nq._qq = 1
},
function() {
_hq = !1;
_tq(_bq.id)
})
};
_Dq = function(_bq) {
_fq = "win8AsyncQuestionDialog";
_xq._Wh(_bq.id, null, _yq, _fq);
_Dp1[1](_bq._kq[0],
function() {
var _nq = _oq(_fq);
if (!_nq) return;
_nq._lq = "";
_nq._mq = "";
_nq.value = 0;
_nq._8j = "";
_nq._pq = !0;
_nq._qq = 1
},
function() {
var _nq = _oq(_fq);
if (!_nq) return;
_nq._lq = "";
_nq._mq = "";
_nq.value = 0;
_nq._8j = "";
_nq._pq = !0;
_nq._qq = 0
},
function() {
_hq = !1;
_tq(_bq.id)
})
};
_zq = function(_bq) {
_fq = "win8AsyncInputDialog";
_xq._Wh(_bq.id, null, _yq, _fq);
_Dp1[2](_bq._kq[0],
function() {
var _nq = _oq(_fq);
if (!_nq) return;
_nq._lq = "";
_nq._mq = "";
_nq.value = 0;
_nq._8j = "";
_nq._pq = !0;
_nq._qq = 0
},
function() {
_hq = !1;
_tq(_bq.id)
})
};
_aq = function(_bq) {
_fq = "win8AsyncLoginDialog";
_xq._Wh(_bq.id, null, _yq, _fq);
_Dp1[3](function(_lq, _mq) {
var _nq = _oq(_fq);
if (!_nq) return;
_nq._lq = _lq;
_nq._mq = _mq;
_nq._qq = 1;
_nq.value = 0;
_nq._8j = "";
_nq._pq = !0;
_hq = !1;
_tq(_bq.id)
})
}
}
function _ip1(_ce, _lz, _nz, _Bz) {
try {
var _uz = new XMLHttpRequest();
if (_Bz) {
_xq._Wh(_Dz, _lz, _Ez, _uz)
}
_uz.open(_ce, _lz);
_uz.ontimeout = function(_fr) {
_jz(_fr, _uz)
};
_uz.onerror = function(_fr) {
_jz(_fr, _uz)
};
_uz.onload = function(_fr) {
_iz(_fr, _uz)
};
_uz._qz = function() {};
_uz.send(_nz)
} catch(e) {
return - 1
}
return _Dz++
}
function _bp1() {
if (_Tp) {
for (var index = 0; index < arguments.length; ++index) {}
}
}
function _cp1(__p) {
if (_Tp) {
if (!_Mp[__p]) {
_Mp[__p] = !0;
alert(__p);
}
}
}
function _kp1(_lz, _Ep1) {
var _uz = {
responseText: "",
status: -1
};
_xq._Wh(_Dz, _lz, _Ez, _uz);
window["downloadFile"](_lz, _Ep1,
function(_Fp1) {
_uz.responseText = _Fp1;
_uz.status = 200;
_iz(null, _uz)
},
function(e) {
_uz.responseText = e.message;
_uz.status = e._Gp1;
_jz(null, _uz)
});
return _Dz++
}
function _mp1(_Hp1, _Ip1) {
return window["unzipContent"](_Hp1, _Ip1,
function(_Jp1, _Kp1) {
debug("zip_unzip() returned " + _Jp1 + " entries successfully")
},
function(_Jp1, _Kp1) {
debug("zip_unzip() returned " + _Jp1 + " entries with errors")
})
}
function _Lp1(_bb) {
return (((_bb._T9 * 255) & 0xff) << 0) | (((_bb._jb * 255) & 0xff) << 8) | (((_bb._W9 * 255) & 0xff) << 16)
}
function _Mp1(_rb, _LO, _bb) {
_Y6(_Lp1(_bb));
var scale = 1.0 / this._Np1._lD;
for (var _C9 = 0; _C9 < _LO; ++_C9) {
var _Op1 = _rb[_C9];
var _Pp1 = _rb[(_C9 + 1) % _LO];
_qb(_Op1._f3 * scale, _Op1._g3 * scale, _Pp1._f3 * scale, _Pp1._g3 * scale)
}
}
function _Qp1(_rb, _LO, _bb) {
_Y6(_Lp1(_bb));
var scale = 1.0 / this._Np1._lD;
var _Op1 = _rb[0];
for (var _C9 = 2; _C9 < _LO; ++_C9) {
var _Pp1 = _rb[_C9 - 1];
var _Rp1 = _rb[_C9];
_dw(_Op1._f3 * scale, _Op1._g3 * scale, _Pp1._f3 * scale, _Pp1._g3 * scale, _Rp1._f3 * scale, _Rp1._g3 * scale, !1)
}
}
function _Sp1(_OO, _PO, _bb) {
_Y6(_Lp1(_bb));
var scale = 1.0 / this._Np1._lD;
_Dw((_OO._f3 - _PO) * scale, (_OO._g3 - _PO) * scale, (_OO._f3 + _PO) * scale, (_OO._g3 + _PO) * scale, !0)
}
function _Tp1(_OO, _PO, _RO, _bb) {
_Y6(_Lp1(_bb));
var scale = 1.0 / this._Np1._lD;
_Dw((_OO._f3 - _PO) * scale, (_OO._g3 - _PO) * scale, (_OO._f3 + _PO) * scale, (_OO._g3 + _PO) * scale, !1)
}
function _Up1(_TO, _UO, _bb) {
_Y6(_Lp1(_bb));
var scale = 1.0 / this._Np1._lD;
_qb(_TO._f3 * scale, _TO._g3 * scale, _UO._f3 * scale, _UO._g3 * scale)
}
function _Vp1(_ON) {
var _Wp1 = 0.4;
var scale = 1.0 / this._Np1._lD;
var _TO = _ON._mv,
_UO = new _Xp1._Yp1();
_UO._f3 = _TO._f3 + _Wp1 * _ON._fu._LN()._f3;
_UO._g3 = _TO._g3 + _Wp1 * _ON._fu._LN()._g3;
_Y6(_Zp1);
_qb(_TO._f3 * scale, _TO._g3 * scale, _UO._f3 * scale, _UO._g3 * scale);
_UO._f3 = _TO._f3 + _Wp1 * _ON._fu._MN()._f3;
_UO._g3 = _TO._g3 + _Wp1 * _ON._fu._MN()._g3;
_Y6(__p1);
_qb(_TO._f3 * scale, _TO._g3 * scale, _UO._f3 * scale, _UO._g3 * scale)
}
function _0q1(_XO, _PO, _YO, _Ea) {
for (var _C9 = 0; _C9 < _Ea; _C9++) {
var scale = 1.0 / this._Np1._lD;
_Y6(((_YO[_C9]._T9 & 0xff) << 0) | ((_YO[_C9]._jb & 0xff) << 8) | ((_YO[_C9]._W9 & 0xff) << 16));
_Dw((_XO[_C9]._f3 - _PO) * scale, (_XO[_C9]._g3 - _PO) * scale, (_XO[_C9]._f3 + _PO) * scale, (_XO[_C9]._g3 + _PO) * scale, !0)
}
}
function _QC(_SC) {
this._0Z = 0;
this._1Z = 0;
this._1q1 = _SC;
this._2q1 = !1;
this._3q1 = !0;
this._4q1 = !1;
this._5q1 = new _Xp1._6q1();
this._2Q = null
};
_QC.prototype._jD = function(_7q1) {
this._2Q = null;
this._5q1._DP = new _Xp1._8q1();
this._5q1._DP._iP = _7q1
};
_QC.prototype._nD = function() {
this._2Q = [];
this._5q1._DP = new _Xp1._9q1()
};
_QC.prototype._rD = function(_V8, _W8) {
var _LO = this._2Q.length;
this._2Q[_LO] = new _Xp1._Yp1(_V8, _W8)
};
_QC.prototype._aq1 = function() {
if (this._2Q === null || this._2Q === undefined) {
return ! 0
}
if (this._5q1._DP._hP === _Xp1._bq1._yP) {
if (this._2Q.length > 2) {
this._5q1._DP._gi(this._2Q, this._2Q.length);
return ! 0
}
} else if (this._5q1._DP._hP === _Xp1._bq1._zP) {
if (this._4q1) {
if (this._2Q.length >= 3) {
this._5q1._DP._9Q(this._2Q, this._2Q.length);
return ! 0
}
} else {
if (this._2Q.length >= 2) {
this._5q1._DP._aQ(this._2Q, this._2Q.length);
return ! 0
}
}
}
return ! 1
};
_QC.prototype._5D = function(_4D) {
this._5q1._K_._J_ = _4D
};
_QC.prototype._2D = function(_1D) {
this._5q1._L_ = _1D
};
_QC.prototype.__C = function(_ZC) {
this._5q1._M_ = _ZC
};
_QC.prototype._XC = function(_WC) {
this._5q1._sP = _WC
};
_QC.prototype._8D = function(_cq1) {
this._5q1._N_ = _cq1
};
_QC.prototype._bD = function(_aD) {
this._0Z = _aD
};
_QC.prototype._dD = function(_aD) {
this._1Z = _aD
};
_QC.prototype._dD = function(_aD) {
this._1Z = _aD
};
_QC.prototype._gD = function(_fD) {
this._3q1 = _fD
};
_QC.prototype._UC = function() {
this._2q1 = !0
};
var _dq1 = 0,
_eq1 = 1,
_fq1 = 2,
_gq1 = 3,
_hq1 = 4,
_iq1 = 5,
_jq1 = 6,
_kq1 = 7,
_lq1 = 8,
_mq1 = 9,
_nq1 = 10,
_oq1 = 11,
_pq1 = 12,
_qq1 = 13,
_rq1 = 14,
_sq1 = 15,
_tq1 = 16,
_uq1 = 17,
_vq1 = 18,
_wq1 = 19,
_xq1 = 20,
_yq1 = 21,
_zq1 = 22,
_Aq1 = 23,
_Bq1 = 24;
function _Cq1(_Dq1) {
this._Eq1 = _Dq1
};
_Cq1.prototype._Zb1 = function(_Fq1) {
if ((this._Eq1 instanceof _Xp1._Gq1) || (this._Eq1 instanceof _Xp1._Hq1) || (this._Eq1 instanceof _Xp1._Iq1)) {
this._Eq1._H21()._gD(!0);
this._Eq1._I21()._gD(!0);
this._Eq1._Zb1(_Fq1)
}
};
function _Jq1(_Kq1, _Lq1, _tD, _uD) {
this._Mq1 = _Kq1;
this._Nq1 = _Lq1;
this._Oq1 = new _Xp1._Yp1(_tD, _uD);
this._Pq1 = []
};
_Jq1.prototype._QZ = function(_Qq1, _Rq1, _Sq1, _Tq1) {
this._Mq1._QZ(new _Xp1._Yp1(_Sq1, _Tq1), new _Xp1._Yp1(_Qq1, _Rq1), !0)
};
_Jq1.prototype._YZ = function(_Uq1) {
this._Mq1._YZ(_Uq1, !0)
};
_Jq1.prototype._UZ = function(_Vq1) {
this._Mq1._UZ(_Vq1, !0)
};
_Jq1.prototype._Wq1 = function(_Xq1) {
var position = this._Mq1._JC();
this._Mq1._IZ(position, (_Xq1 * Math.PI) / 180.0);
this._Mq1._gD(!0)
};
_Jq1.prototype._Yq1 = function(_2i) {
var _0b = this._Mq1._KN();
var _Zq1 = this._Mq1._JC()._g3;
this._Mq1._IZ(new _Xp1._Yp1(_2i, _Zq1), _0b);
this._Mq1._gD(!0)
};
_Jq1.prototype.__q1 = function(_2i) {
var _0b = this._Mq1._KN();
var _0r1 = this._Mq1._JC()._f3;
this._Mq1._IZ(new _Xp1._Yp1(_0r1, _2i), _0b);
this._Mq1._gD(!0)
};
_Jq1.prototype._OZ = function(_1r1) {
this._Mq1._OZ((_1r1 * Math.PI) / 180.0);
this._Mq1._gD(!0)
};
_Jq1.prototype._2r1 = function(_3r1) {
var _4r1 = this._Mq1._NZ();
this._Mq1._MZ(new _Xp1._Yp1(_3r1, _4r1._g3));
this._Mq1._gD(!0)
};
_Jq1.prototype._5r1 = function(_3r1) {
var _4r1 = this._Mq1._NZ();
this._Mq1._MZ(new _Xp1._Yp1(_4r1._f3, _3r1));
this._Mq1._gD(!0)
};
_Jq1.prototype._l_ = function(_6r1) {
this._Mq1._l_(_6r1)
};
_Jq1.prototype._t_ = function(_7r1) {
this._Mq1._t_(_7r1)
};
_Jq1.prototype._r_ = function(_8r1) {
this._Mq1._r_(_8r1)
};
_Jq1.prototype._9r1 = function(_ar1) {
var _TC = this._Mq1._v_();
while ((_TC != null) && (_TC != undefined)) {
var _DP = _TC._U_();
var _br1 = this._Mq1._JC();
if (_DP instanceof _Xp1._8q1) {
_Dw((_br1._f3 - _DP._iP) * _ar1, (_br1._g3 - _DP._iP) * _ar1, (_br1._f3 + _DP._iP) * _ar1, (_br1._g3 + _DP._iP) * _ar1, !0)
} else if (_DP instanceof _Xp1._9q1) {
var _cr1 = Math.sin(this._Mq1._KN());
var _dr1 = Math.cos(this._Mq1._KN());
for (var _C9 = 0; _C9 < _DP._3Q; ++_C9) {
var _Op1 = _DP._2Q[_C9];
var _Pp1 = _DP._2Q[(_C9 + 1) % _DP._3Q];
_qb((_br1._f3 + ((_Op1._f3 * _dr1) - (_Op1._g3 * _cr1))) * _ar1, (_br1._g3 + ((_Op1._f3 * _cr1) + (_Op1._g3 * _dr1))) * _ar1, (_br1._f3 + ((_Pp1._f3 * _dr1) - (_Pp1._g3 * _cr1))) * _ar1, (_br1._g3 + ((_Pp1._f3 * _cr1) + (_Pp1._g3 * _dr1))) * _ar1)
}
}
_TC = _TC._YY
}
};
_Jq1.prototype._er1 = function(_ar1) {
var _D_ = this._Mq1._VY;
while ((_D_ != null) && (_D_ != undefined)) {
var _E_ = _D_._E_;
if (_E_ instanceof _Xp1._Gq1) {
this._fr1(_E_, _ar1)
} else if (_E_ instanceof _Xp1._Hq1) {
this._gr1(_E_, _ar1)
} else if (_E_ instanceof _Xp1._hr1) {
this._ir1(_E_, _ar1)
} else if (_E_ instanceof _Xp1._jr1) {
this._kr1(_E_, _ar1)
} else if (_E_ instanceof _Xp1._lr1) {
if (_E_._mr1 != null) {
this._fr1(_E_._mr1, _ar1)
}
if (_E_._nr1 != null) {
this._fr1(_E_._nr1, _ar1)
}
if (_E_._or1 != null) {
this._gr1(_E_._or1, _ar1)
}
if (_E_._pr1 != null) {
this._gr1(_E_._pr1, _ar1)
}
}
_D_ = _D_._YY
}
};
_Jq1.prototype._ir1 = function(_qr1, _ar1) {
var _Dc1 = _qr1._J21();
var _Ec1 = _qr1._K21();
_qb(_Dc1._f3 * _ar1, _Dc1._g3 * _ar1, _Ec1._f3 * _ar1, _Ec1._g3 * _ar1)
};
_Jq1.prototype._fr1 = function(_qr1, _ar1) {
var anchor = _qr1._J21();
_qb((anchor._f3 * _ar1) - 2, (anchor._g3 * _ar1) - 2, (anchor._f3 * _ar1) + 2, (anchor._g3 * _ar1) + 2);
_qb((anchor._f3 * _ar1) - 2, (anchor._g3 * _ar1) + 2, (anchor._f3 * _ar1) + 2, (anchor._g3 * _ar1) - 2)
};
_Jq1.prototype._gr1 = function(_qr1, _ar1) {
var _Dc1 = _qr1._J21();
var _Ec1 = this._Mq1._JC();
_qb(_Dc1._f3 * _ar1, _Dc1._g3 * _ar1, _Ec1._f3 * _ar1, _Ec1._g3 * _ar1)
};
_Jq1.prototype._kr1 = function(_qr1, _ar1) {
var anchor, _rr1;
if (_qr1._sr1() == this._Mq1) {
anchor = _qr1._J21();
_rr1 = _qr1._O21()
} else {
anchor = _qr1._K21();
_rr1 = _qr1._P21()
}
_qb(anchor._f3 * _ar1, anchor._g3 * _ar1, _rr1._f3 * _ar1, _rr1._g3 * _ar1);
_qb(_qr1._O21()._f3 * _ar1, _qr1._O21()._g3 * _ar1, _qr1._P21()._f3 * _ar1, _qr1._P21()._g3 * _ar1)
};
_Jq1.prototype._tr1 = function(_ur1) {
for (var _H3 = 0; _H3 < this._Pq1.length; _H3++) {
if (this._Pq1[_H3] == null || this._Pq1[_H3] == undefined) {
this._Pq1[_H3] = _ur1;
return _H3
}
}
return (this._Pq1.push(_ur1) - 1)
};
_Jq1.prototype._vr1 = function(_wr1) {
if (this._Pq1[_wr1]) {
this._Mq1._zZ(this._Pq1[_wr1]);
this._Pq1[_wr1] = undefined
}
};
_Jq1.prototype._201 = function(_wr1) {
if (this._Pq1[_wr1]) {
return this._Pq1[_wr1]._201()
}
return 0.0
};
_Jq1.prototype._101 = function(_wr1) {
if (this._Pq1[_wr1]) {
return this._Pq1[_wr1]._101();
}
return 0.0
};
_Jq1.prototype._301 = function(_wr1) {
if (this._Pq1[_wr1]) {
return this._Pq1[_wr1]._301()
}
return 0.0
};
_Jq1.prototype._2D = function(_wr1, _Dh) {
if (this._Pq1[_wr1]) {
this._Pq1[_wr1]._2D(_Dh)
}
};
_Jq1.prototype._XC = function(_wr1, _Dh) {
if (this._Pq1[_wr1]) {
this._Pq1[_wr1]._XC(_Dh);
this._Mq1._wZ()
}
};
_Jq1.prototype.__C = function(_wr1, _Dh) {
if (this._Pq1[_wr1]) {
this._Pq1[_wr1].__C(_Dh)
}
};
var _xr1 = 10,
_yr1 = 32,
_zr1 = (1 << 0),
_Ar1 = (1 << 1),
_Br1 = (1 << 2),
_Cr1 = (1 << 3),
_Dr1 = (1 << 4),
_Er1 = (1 << 5),
_Fr1 = (1 << 6);
var _Xp1 = null;
function _Gr1() {
if (_Xp1 === null) {
var _ht = window["b2"];
_Xp1 = {};
_Xp1.version = _ht["version"];
_Xp1._Yp1 = _ht["Vec2"];
_Xp1._Hr1 = _ht["Vec3"];
_Xp1._Ir1 = _ht["Mat22"];
_Xp1._Jr1 = _ht["Mat33"];
_Xp1._Kr1 = _ht["Rot"];
_Xp1._Lr1 = _ht["Transform"];
_Xp1._Mr1 = _ht["Sweep"];
_Xp1._Nr1 = _ht["Dot_v2_v2"];
_Xp1._Or1 = _ht["Cross_v2_v2"];
_Xp1._Pr1 = _ht["Cross_v2_f"];
_Xp1._Qr1 = _ht["Cross_f_v2"];
_Xp1._Rr1 = _ht["Mul_m22_v2"];
_Xp1._Sr1 = _ht["MulT_m22_v2"];
_Xp1._Tr1 = _ht["Distance"];
_Xp1._Ur1 = _ht["DistanceSquared"];
_Xp1._Vr1 = _ht["Dot_v3_v3"];
_Xp1._Wr1 = _ht["Cross_v3_v3"];
_Xp1._Xr1 = _ht["Mul_m22_m22"];
_Xp1._Yr1 = _ht["MulT_m22_m22"];
_Xp1._Zr1 = _ht["Mul_m33_v3"];
_Xp1.__r1 = _ht["Mul22_m33_v2"];
_Xp1._0s1 = _ht["Mul_r_r"];
_Xp1._1s1 = _ht["MulT_r_r"];
_Xp1._2s1 = _ht["Mul_r_v2"];
_Xp1._3s1 = _ht["MulT_r_v2"];
_Xp1._4s1 = _ht["Mul_t_v2"];
_Xp1._5s1 = _ht["Min_v2"];
_Xp1._6s1 = _ht["Max_v2"];
_Xp1._7s1 = _ht["Clamp"];
_Xp1._8s1 = _ht["MulT_t_v2"];
_Xp1._9s1 = _ht["Mul_t_t"];
_Xp1._as1 = _ht["MulT_t_t"];
_Xp1._bs1 = _ht["Clamp_v2"];
_Xp1._cs1 = _ht["NextPowerOfTwo"];
_Xp1._ds1 = _ht["Abs_v2"];
_Xp1._es1 = _ht["Abs_m22"];
_Xp1._fs1 = _ht["IsPowerOfTwo"];
_Xp1._gs1 = _ht["RandomFloat"];
_Xp1._hs1 = _ht["Timer"];
_Xp1._is1 = _ht["Color"];
_Xp1._6b = _ht["Draw"];
_Xp1._js1 = _ht["ContactID"];
_Xp1._ks1 = _ht["ManifoldPoint"];
_Xp1._ls1 = _ht["Manifold"];
_Xp1._ms1 = _ht["WorldManifold"];
_Xp1._ns1 = _ht["GetPointStates"];
_Xp1._os1 = _ht["ClipVertex"];
_Xp1._ps1 = _ht["RayCastInput"];
_Xp1._qs1 = _ht["RayCastOutput"];
_Xp1._rs1 = _ht["AABB"];
_Xp1._ss1 = _ht["CollideCircles"];
_Xp1._ts1 = _ht["CollidePolygonAndCircle"];
_Xp1._us1 = _ht["FindMaxSeparation"];
_Xp1._vs1 = _ht["FindIncidentEdge"];
_Xp1._ws1 = _ht["CollidePolygons"];
_Xp1._xs1 = _ht["CollideEdgeAndCircle"];
_Xp1._ys1 = _ht["EPAxis"];
_Xp1._zs1 = _ht["TempPolygon"];
_Xp1._As1 = _ht["ReferenceFace"];
_Xp1._Bs1 = _ht["EPCollider"];
_Xp1._Cs1 = _ht["CollideEdgeAndPolygon"];
_Xp1._Ds1 = _ht["ClipSegmentToLine"];
_Xp1._Es1 = _ht["TestShapeOverlap"];
_Xp1._nR = _ht["TestOverlap"];
_Xp1._bq1 = _ht["Shape"];
_Xp1._Fs1 = _ht["MassData"];
_Xp1._8q1 = _ht["CircleShape"];
_Xp1._Gs1 = _ht["EdgeShape"];
_Xp1._Hs1 = _ht["ChainShape"];
_Xp1._9q1 = _ht["PolygonShape"];
_Xp1._D51 = _ht["Pair"];
_Xp1._Is1 = _ht["PairLessThan"];
_Xp1._Js1 = _ht["BroadPhase"];
_Xp1._Ks1 = _ht["DistanceProxy"];
_Xp1._Ls1 = _ht["SimplexCache"];
_Xp1._Ms1 = _ht["DistanceInput"];
_Xp1._Ns1 = _ht["DistanceOutput"];
_Xp1._Os1 = _ht["SimplexVertex"];
_Xp1._Ps1 = _ht["Simplex"];
_Xp1._Qs1 = _ht["DistanceFunc"];
_Xp1._Rs1 = _ht["TreeNode"];
_Xp1._Ss1 = _ht["DynamicTree"];
_Xp1._Ts1 = _ht["TOIInput"];
_Xp1._Us1 = _ht["TOIOutput"];
_Xp1._Vs1 = _ht["SeparationFunction"];
_Xp1._Ws1 = _ht["TimeOfImpact"];
_Xp1._Xs1 = _ht["BodyDef"];
_Xp1._Ys1 = _ht["Body"];
_Xp1._Zs1 = _ht["Filter"];
_Xp1._6q1 = _ht["FixtureDef"];
_Xp1.__s1 = _ht["Fixture"];
_Xp1._0t1 = _ht["DestructionListener"];
_Xp1._1t1 = _ht["ContactFilter"];
_Xp1._2t1 = _ht["ContactImpulse"];
_Xp1._3t1 = _ht["ContactListener"];
_Xp1._KR = _ht["QueryCallback"];
_Xp1._XW = _ht["RayCastCallback"];
_Xp1._4t1 = _ht["TimeStep"];
_Xp1._5t1 = _ht["Position"];
_Xp1._6t1 = _ht["Velocity"];
_Xp1._7t1 = _ht["SolverData"];
_Xp1._8t1 = _ht["World"];
_Xp1._9t1 = _ht["MixFriction"];
_Xp1._at1 = _ht["MixRestitution"];
_Xp1._bt1 = _ht["ContactRegister"];
_Xp1._ct1 = _ht["ContactEdge"];
_Xp1._dt1 = _ht["Contact"];
_Xp1._et1 = _ht["CircleContact"];
_Xp1._ft1 = _ht["PolygonContact"];
_Xp1._gt1 = _ht["ChainAndCircleContact"];
_Xp1._ht1 = _ht["ChainAndPolygonContact"];
_Xp1._it1 = _ht["EdgeAndCircleContact"];
_Xp1._jt1 = _ht["EdgeAndPolygonContact"];
_Xp1._kt1 = _ht["PolygonAndCircleContact"];
_Xp1._lt1 = _ht["defaultFilter"];
_Xp1._mt1 = _ht["defaultListener"];
_Xp1._nt1 = _ht["ContactManager"];
_Xp1._ot1 = _ht["VelocityConstraintPoint"];
_Xp1._pt1 = _ht["ContactPositionConstraint"];
_Xp1._qt1 = _ht["ContactVelocityConstraint"];
_Xp1._rt1 = _ht["PositionSolverManifold"];
_Xp1._st1 = _ht["ContactSolverDef"];
_Xp1._tt1 = _ht["ContactSolver"];
_Xp1._ut1 = _ht["Island"];
_Xp1._vt1 = _ht["Jacobian"];
_Xp1._wt1 = _ht["JointEdge"];
_Xp1._xt1 = _ht["JointDef"];
_Xp1._yt1 = _ht["Joint"];
_Xp1._zt1 = _ht["RevoluteJointDef"];
_Xp1._Gq1 = _ht["RevoluteJoint"];
_Xp1._At1 = _ht["MouseJointDef"];
_Xp1._Bt1 = _ht["MouseJoint"];
_Xp1._Ct1 = _ht["DistanceJointDef"];
_Xp1._hr1 = _ht["DistanceJoint"];
_Xp1._Dt1 = _ht["PrismaticJointDef"];
_Xp1._Hq1 = _ht["PrismaticJoint"];
_Xp1._Et1 = _ht["FrictionJointDef"];
_Xp1._Ft1 = _ht["FrictionJoint"];
_Xp1._Gt1 = _ht["WeldJointDef"];
_Xp1._Ht1 = _ht["WeldJoint"];
_Xp1._It1 = _ht["WheelJointDef"];
_Xp1._Iq1 = _ht["WheelJoint"];
_Xp1._Jt1 = _ht["GearJointDef"];
_Xp1._lr1 = _ht["GearJoint"];
_Xp1._Kt1 = _ht["MotorJointDef"];
_Xp1._Lt1 = _ht["MotorJoint"];
_Xp1._Mt1 = _ht["PulleyJointDef"];
_Xp1._jr1 = _ht["PulleyJoint"];
_Xp1._Nt1 = _ht["RopeJointDef"];
_Xp1._Ot1 = _ht["RopeJoint"];
_Xp1._Pt1 = _ht["RopeDef"];
_Xp1._Qt1 = _ht["Rope"];
_Xp1._Rt1 = _ht["maxManifoldPoints"];
_Xp1._St1 = _ht["maxPolygonVertices"];
_Xp1._Tt1 = _ht["aabbExtension"];
_Xp1._Ut1 = _ht["aabbMultiplier"];
_Xp1._Vt1 = _ht["linearSlop"];
_Xp1._Wt1 = _ht["angularSlop"];
_Xp1._Xt1 = _ht["polygonRadius"];
_Xp1._Yt1 = _ht["maxSubSteps"];
_Xp1._Zt1 = _ht["maxTOIContacts"];
_Xp1.__t1 = _ht["velocityThreshold"];
_Xp1._0u1 = _ht["maxLinearCorrection"];
_Xp1._1u1 = _ht["maxAngularCorrection"];
_Xp1._2u1 = _ht["maxTranslation"];
_Xp1._3u1 = _ht["maxTranslationSquared"];
_Xp1._4u1 = _ht["maxRotation"];
_Xp1._5u1 = _ht["maxRotationSquared"];
_Xp1._6u1 = _ht["baumgarte"];
_Xp1._7u1 = _ht["toiBaugarte"];
_Xp1._8u1 = _ht["timeToSleep"];
_Xp1._9u1 = _ht["linearSleepTolerance"];
_Xp1._au1 = _ht["angularSleepTolerance"];
_Xp1._bu1 = _ht["epsilon"];
_Xp1._cu1 = _ht["JsonSerializer"];
_Xp1._du1 = _ht["RUBELoader"];
_Xp1._eu1 = _ht["Profiler"];
_Xp1._fu1 = _ht["ParticleDef"];
_Xp1._gu1 = _ht["ParticleColor"];
_Xp1._hu1 = _ht["ParticleGroupDef"];
_Xp1._iu1 = _ht["ParticleGroup"];
_Xp1._ju1 = _ht["ParticleSystem"]
}
}
function _ku1(_lu1) {
var _j81 = new _Xp1._ms1();
_lu1._i81(_j81);
this._mu1 = _lu1._DZ();
this._nu1 = _lu1._FZ();
this._ou1 = [];
this._pu1 = [];
this._ou1[0] = _lu1._h81();
this._pu1[0] = _j81
};
function _qu1(_ru1, _su1, _tu1) {
this._uu1 = _ru1;
this._H_ = _su1;
this._I_ = _tu1
};
function _vu1(_wu1, _xu1) {
_Gr1();
if (_Xp1 === null) {
_Xp1 = window["b2"]
}
this._lD = _wu1;
this._yu1 = _xu1;
this._zu1 = _xr1;
this._WY = [];
this._Au1 = [];
this._Bu1 = new _Xp1._hu1();
this._j11 = null;
this._Cu1 = !1;
this._Du1 = [];
for (var _H3 = 0; _H3 < _yr1; _H3++) {
this._Du1[_H3] = new _qu1( - 1, 0, 0)
}
var _N01 = new _Xp1._Yp1(0, 10);
this._SY = new _Xp1._8t1(_N01);
this._Eu1();
this._Fu1();
this._WO = _sa ? this._Gu1: this._Hu1;
this._Iu1 = _sa ? this._Ju1: this._Ku1;
};
_vu1.prototype._Eu1 = function() {
var _Jb = document.getElementById("canvas").getContext("2d");
if (_Jb) {
this._j11 = new _Xp1._6b();
this._j11._EO(_Xp1._6b._ZO | _Xp1._6b.__O);
this._j11._Np1 = this;
this._j11._KO = _Mp1;
this._j11._MO = _Qp1;
this._j11._NO = _Sp1;
this._j11._QO = _Tp1;
this._j11._SO = _Up1;
this._j11._VO = _Vp1;
this._j11._WO = _0q1;
this._SY._i11(this._j11)
}
};
_vu1.prototype._Fu1 = function() {
var _Lu1 = new _Xp1._3t1();
_Lu1._Mu1 = this;
_Lu1._n01 = function(_BZ) {
if (_BZ._DZ()._W_() || _BZ._FZ()._W_()) {
this._Mu1._Nu1(_BZ)
}
};
_Lu1._p01 = function(_BZ, _q01) {};
_Lu1._o01 = function(_BZ) {};
_Lu1._r01 = function(_BZ, _Ou1) {
this._Mu1._Nu1(_BZ)
};
this._SY._g11(_Lu1)
};
_vu1.prototype._Nu1 = function(_lu1) {
for (var _C9 = 0; _C9 < this._WY.length; _C9++) {
var _Pu1 = this._WY[_C9];
if ((_Pu1._mu1 == _lu1._DZ() && _Pu1._nu1 == _lu1._FZ()) || (_Pu1._mu1 == _lu1._FZ() && _Pu1._nu1 == _lu1._DZ())) {
var _j81 = new _Xp1._ms1();
_lu1._i81(_j81);
_Pu1._ou1[_Pu1._ou1.length] = _lu1._h81();
_Pu1._pu1[_Pu1._pu1.length] = _j81;
return
}
}
this._WY[this._WY.length] = new _ku1(_lu1)
};
_vu1.prototype._621 = function(_Qu1, _Ru1) {
this._SY._Z01._f3 = _Qu1;
this._SY._Z01._g3 = _Ru1;
if ((_Qu1 != 0.0) || (_Ru1 != 0.0)) {
var _Su1 = this._SY._U11();
while ((_Su1 != null) && (_Su1 != undefined)) {
if (_Su1._jP() === _Xp1._Ys1._6Z) {
_Su1._gD(!0)
}
_Su1 = _Su1._y_()
}
}
};
_vu1.prototype._Tu1 = function() {
var _3i = _H8._Fy._3i;
for (var index = 0; index < _3i.length; index++) {
var _Ay = _3i[index];
if (_Ay._Uu1 >= 0) {
var _Vu1 = _Ay._Wu1;
if (_Vu1 !== null && _Vu1 !== undefined) {
var _Su1 = _Vu1._Mq1;
if (_Su1._jP() !== _Xp1._Ys1._6Z) {
if (_Ay._Xu1()) {
_Ay._g9(_Yu1, 0, _Ay, _Ay)
}
_Su1._IZ(new _Xp1._Yp1(_Ay._f3 * this._lD, _Ay._g3 * this._lD), _Su1._KN())
}
} else {
if (_Ay._Xu1()) {
_Ay._g9(_Yu1, 0, _Ay, _Ay)
}
}
}
}
};
_vu1.prototype._Zu1 = function() {
var __u1 = 1.0 / this._lD;
var _Su1 = this._SY._U11();
while ((_Su1 != null) && (_Su1 != undefined)) {
var _Ay = _Su1._mR();
if ((_Ay != null) && (_Ay != undefined)) {
_Ay._0v1(_Su1);
var _Hn = _Su1._JC();
_Ay._1v1 = _Hn._f3 * __u1;
_Ay._2v1 = _Hn._g3 * __u1
}
_Su1 = _Su1._y_()
}
};
_vu1.prototype._Ag = function(_3v1) {
if (_3v1 <= 0) {
return
}
this._Tu1();
if (this._Cu1 == !0) {
return
}
this._Zu1();
var _4v1 = 1.0 / this._yu1;
var _5v1 = this._yu1 / _3v1;
var _6v1 = _5v1;
while (_6v1 > 0.0) {
var _7v1 = (_6v1 > 1.0) ? _4v1: (_4v1 * _6v1);
this._SY._A11(_7v1, this._zu1, this._zu1);
_6v1 -= 1.0
}
this._SY._E11();
this._8v1();
this._9v1()
};
_vu1.prototype._8v1 = function() {
var __u1 = 1.0 / this._lD;
var _Su1 = this._SY._U11();
while ((_Su1 != null) && (_Su1 != undefined)) {
var _Ay = _Su1._mR();
if ((_Ay != null) && (_Ay != undefined)) {
_Ay._0v1(_Su1)
}
_Su1 = _Su1._y_()
}
};
_vu1.prototype._9v1 = function() {
var __u1 = 1.0 / this._lD;
for (var _H3 = 0; _H3 < this._WY.length; _H3++) {
if (this._WY[_H3]._mu1 && this._WY[_H3]._nu1 && this._WY[_H3]._mu1._001() && this._WY[_H3]._nu1._001()) {
var _av1 = this._WY[_H3]._mu1._001()._mR();
var _bv1 = this._WY[_H3]._nu1._001()._mR();
_av1._cv1 = 0;
_av1._dv1 = [];
_av1._ev1 = [];
_av1._fv1 = [];
_av1._gv1 = [];
_bv1._cv1 = 0;
_bv1._dv1 = [];
_bv1._ev1 = [];
_bv1._fv1 = [];
_bv1._gv1 = [];
var _hv1 = 0;
for (var _iv1 = 0; _iv1 < this._WY[_H3]._ou1.length; _iv1++) {
var _j81 = this._WY[_H3]._pu1[_iv1];
for (var __9 in _j81._e3) {
if (!_j81._e3.hasOwnProperty(__9)) continue;
_av1._dv1[_hv1] = _j81._e3[__9]._f3 * __u1;
_av1._ev1[_hv1] = _j81._e3[__9]._g3 * __u1;
_av1._fv1[_hv1] = _j81._vP._f3;
_av1._gv1[_hv1] = _j81._vP._g3;
_bv1._dv1[_hv1] = _j81._e3[__9]._f3 * __u1;
_bv1._ev1[_hv1] = _j81._e3[__9]._g3 * __u1;
_bv1._fv1[_hv1] = _j81._vP._f3;
_bv1._gv1[_hv1] = _j81._vP._g3;
_av1._cv1++;
_bv1._cv1++;
_hv1++
}
}
_av1._g9(_jv1, _bv1._kv1, _av1, _bv1);
_bv1._g9(_jv1, _av1._kv1, _bv1, _av1);
_av1._cv1 = 0;
_av1._dv1 = undefined;
_av1._ev1 = undefined;
_av1._fv1 = undefined;
_av1._gv1 = undefined;
_bv1._cv1 = 0;
_bv1._dv1 = undefined;
_bv1._ev1 = undefined;
_bv1._fv1 = undefined;
_bv1._gv1 = undefined
}
}
this._WY = []
};
_vu1.prototype._yD = function(_ur1, _lv1, _tD, _uD) {
var _vD = -1;
if (!_ur1._aq1()) {
return
}
var _mv1 = this._nv1(_lv1._kv1);
if (_mv1 != -1) {
_ur1._5q1._K_._H_ = this._Du1[_mv1]._H_;
_ur1._5q1._K_._I_ = this._Du1[_mv1]._I_
} else {
_ur1._5q1._K_._H_ = 0;
_ur1._5q1._K_._I_ = 0
}
var _ov1 = _lv1._Wu1;
if (_lv1._Wu1) {
var _Su1 = _ov1._Mq1;
var _TC = _Su1._jZ(_ur1._5q1);
_vD = _ov1._tr1(_TC)
} else {
var _pv1 = new _Xp1._Xs1();
_pv1.type = (_ur1._5q1._sP == 0) ? (_ur1._2q1 ? _Xp1._Ys1._eZ: _Xp1._Ys1._yY) : _Xp1._Ys1._6Z;
_pv1._0b = -_lv1._qv1 * _Y9 / 180.0;
_pv1._BY = _ur1._0Z;
_pv1._CY = _ur1._1Z;
_pv1._EY = _ur1._3q1;
var _rv1 = _lv1._sv1(_pv1._0b, {
_f3: _tD,
_g3: _uD
});
_pv1.position._f3 = (_lv1._f3 - _rv1._f3) * this._lD;
_pv1.position._g3 = (_lv1._g3 - _rv1._g3) * this._lD;
_pv1._dR = _lv1;
var _Su1 = this._SY._yD(_pv1);
var _TC = _Su1._jZ(_ur1._5q1);
_ov1 = new _Jq1(_Su1, _mv1, _tD, _uD);
_lv1._Wu1 = _ov1;
_lv1._0v1(_Su1);
_vD = _ov1._tr1(_TC);
this._tv1()
}
return _vD
};
_vu1.prototype._k11 = function(_uv1) {
this._SY._k11(_uv1._Mq1)
};
_vu1.prototype._n11 = function(_vv1) {
this._SY._n11(_vv1._Eq1)
};
_vu1.prototype._wv1 = function(_ru1) {
for (var _C9 = 0; _C9 < _yr1; _C9++) {
if (this._Du1[_C9]._uu1 == _ru1) {
return _C9
}
}
return - 1
};
_vu1.prototype._xv1 = function(_ru1) {
var _yv1 = this._wv1(_ru1);
if (_yv1 != -1) {
return _yv1
}
for (var _C9 = 0; _C9 < _yr1; _C9++) {
if (this._Du1[_C9]._uu1 == -1) {
this._Du1[_C9]._uu1 = _ru1;
this._Du1[_C9]._H_ = (1 << _C9);
this._Du1[_C9]._I_ = 0;
return _C9
}
}
return - 1
};
_vu1.prototype._zv1 = function(_ru1) {
var _Av1 = [];
for (var _Bv1 in _Cv1) {
if (!_Cv1.hasOwnProperty(_Bv1)) continue;
for (var _u81 in _Cv1[_Bv1]) {
if (!_Cv1[_Bv1].hasOwnProperty(_u81)) continue;
var _Dv1 = -1;
if (_Bv1 == _ru1) {
_Dv1 = _u81
} else if (_u81 == _ru1) {
_Dv1 = _Bv1
}
if (_Dv1 !== -1) {
_Av1[_Av1.length] = _Dv1
}
}
}
return _Av1
};
_vu1.prototype._Ev1 = function(_7i, _Fv1) {
for (var _4s in _Ys._Gv1) {
if (!_Ys._Gv1.hasOwnProperty(_4s)) continue;
var _Hv1 = _Ys._Gv1[_4s];
if (_Hv1._Yy === _7i.__y) {
if (this._zv1(_Hv1.__y).length !== 0) {
_Fv1[_Fv1.length] = _Hv1.__y
}
this._Ev1(_Hv1, _Fv1)
}
}
};
_vu1.prototype._Iv1 = function(_ru1) {
var _Av1 = this._zv1(_ru1);
var _Jv1 = _ru1;
var _Kv1 = _Ys._Gh(_ru1);
while ((_Kv1._Yy >= 0) && _Ys._Gh(_Kv1._Yy)) {
_Kv1 = _Ys._Gh(_Kv1._Yy);
_Av1 = _Av1.concat(this._zv1(_Kv1.__y))
}
for (var _C9 = 0; _C9 < _Av1.length; _C9++) {
var _Lv1 = _Av1[_C9];
var _4s = _Ys._Gh(_Lv1);
this._Ev1(_4s, _Av1)
}
return _Av1;
};
_vu1.prototype._Mv1 = function(_ru1, _Lq1) {
var _Av1 = this._Iv1(_ru1);
for (var _Nv1 = 0; _Nv1 < _Av1.length; ++_Nv1) {
for (var _Ov1 = 0; _Ov1 < _yr1; ++_Ov1) {
if (this._Du1[_Ov1]._uu1 == _Av1[_Nv1]) {
this._Du1[_Lq1]._I_ |= this._Du1[_Ov1]._H_;
this._Du1[_Ov1]._I_ |= this._Du1[_Lq1]._H_
}
}
}
};
_vu1.prototype._nv1 = function(_ru1) {
var _mv1 = this._wv1(_ru1);
if (_mv1 !== -1) {
return _mv1
}
var _Av1 = this._zv1(_ru1);
var _uu1 = _ru1;
if (_Av1.length === 0) {
var _Jv1 = _ru1;
var _Kv1 = _Ys._Gh(_ru1);
while ((_Kv1._Yy >= 0) && _Ys._Gh(_Kv1._Yy)) {
_Kv1 = _Ys._Gh(_Kv1._Yy);
_uu1 = _Kv1.__y;
_Av1 = this._zv1(_uu1);
if (_Av1.length !== 0) {
_mv1 = this._wv1(_uu1);
break
}
}
if (_Av1.length === 0) {
return - 1
}
}
if (_mv1 === -1) {
_mv1 = this._xv1(_uu1);
if (_mv1 === -1) {
return - 1
}
}
this._Mv1(_ru1, _mv1);
return _mv1
};
_vu1.prototype._tv1 = function() {
var _Su1 = this._SY._U11();
while ((_Su1 != null) && (_Su1 != undefined)) {
var _Ay = _Su1._mR();
if ((_Ay != null) && (_Ay != undefined)) {
var _Pv1 = _Ay._Wu1._Nq1;
if (_Pv1 != -1) {
var _Qv1 = new _Xp1._Zs1();
_Qv1._H_ = this._Du1[_Pv1]._H_;
_Qv1._I_ = this._Du1[_Pv1]._I_;
var _TC = _Su1._v_();
while ((_TC != null) && (_TC != undefined)) {
_Qv1._J_ = _TC._Z_()._J_;
_TC._X_(_Qv1);
_TC = _TC._YY
}
}
}
_Su1 = _Su1._y_()
}
};
_vu1.prototype._nR = function(_Ti, _xj, _V8, _W8, _Z8) {
var _Rv1 = new _Xp1._Lr1();
_Rv1._gi(new _Xp1._Yp1(_V8, _W8), _Z8);
if ((_Ti._Wu1 === null) || (_Ti._Wu1 === undefined) || (_xj._Wu1 === null) || (_xj._Wu1 === undefined)) {
return
}
var _Sv1 = _Ti._Wu1._Mq1;
var _Tv1 = _xj._Wu1._Mq1;
var _Uv1;
for (_Uv1 = _Sv1._v_(); _Uv1; _Uv1 = _Uv1._y_()) {
var _Vv1;
for (_Vv1 = _Tv1._v_(); _Vv1; _Vv1 = _Uv1._y_()) {
if (_Xp1._Es1(_Uv1._U_(), 0, _Vv1._U_(), 0, _Rv1, _Tv1._VN())) {
return ! 0
}
}
}
return ! 1;
};
_vu1.prototype._531 = function(_Wv1, _V8, _W8, _Xv1, _Yv1, _Sd, _Gd, _Zv1) {
var _kZ = new _Xp1._fu1();
_kZ._ZJ = _Wv1;
_kZ.position._gi(_V8 * this._lD, _W8 * this._lD);
_kZ._n41._gi(_Xv1 * this._lD, _Yv1 * this._lD);
_kZ._bb._gi((_Sd & 0xff), (_Sd & 0xff00) >> 8, (_Sd & 0xff0000) >> 16, (_Gd * 255.0));
_kZ._dR = _Zv1;
return this._SY._531(_kZ)
};
_vu1.prototype.__v1 = function() {
for (var _C9 = 0; _C9 < this._Au1.length; _C9++) {
var _d01 = this._Au1[_C9];
if (_d01 === null || _d01 === undefined) {
return _C9
}
}
var _gb = this._Au1.length;
return _gb
};
_vu1.prototype._0w1 = function(_1w1) {
if (_1w1 >= 0 && _1w1 < this._Au1.length) {
return this._Au1[_1w1]
}
return null
};
_vu1.prototype._a31 = function(_2w1, _3w1) {
var _4w1 = this._0w1(_2w1);
var _5w1 = this._0w1(_3w1);
if ((_4w1 !== null) && (_5w1 !== null)) {
this._SY._a31(_4w1, _5w1);
this._Au1[_3w1] = null
}
};
_vu1.prototype._6w1 = function(_zH, _7w1, _8w1, _9w1) {
var _Ea = this._SY._A31();
if (_8w1 < 0 || _8w1 >= _Ea) return;
if (_9w1 < _8w1) return;
if (_9w1 > _Ea) return;
var _ZJ = this._SY._e31();
var _G01 = this._SY._f31();
var _H01 = this._SY._g31();
var _aw1 = this._SY._h31();
var _dR = this._SY._i31();
var _bw1 = _zH._cw1;
var _dw1 = 1.0 / this._lD;
for (var _C9 = _8w1; _C9 < _9w1; _C9++) {
if (_7w1 & (1 << 0)) {
_zH._ew1(_fw1, _ZJ[_C9])
}
if (_7w1 & (1 << 1)) {
_zH._ew1(_gw1, _G01[_C9]._f3 * _dw1);
_zH._ew1(_gw1, _G01[_C9]._g3 * _dw1)
}
if (_7w1 & (1 << 2)) {
_zH._ew1(_gw1, _H01[_C9]._f3 * _dw1);
_zH._ew1(_gw1, _H01[_C9]._g3 * _dw1)
}
if (_7w1 & (1 << 3)) {
_zH._ew1(_fw1, (_aw1[_C9]._kb << 24) | (_aw1[_C9]._T9 << 16) | (_aw1[_C9]._jb << 8) | _aw1[_C9]._W9)
}
if (_7w1 & (1 << 4)) {
_zH._ew1(_hw1, _dR[_C9]);
}
}
_zH._iw1(_jw1, _bw1)
};
_vu1.prototype._R41 = function(_1w1, _Wv1) {
var _d01 = this._0w1(_1w1);
if (_d01 !== null && _d01 !== undefined) {
_d01._R41(_Wv1)
}
};
_vu1.prototype._Q41 = function(_1w1) {
var _d01 = this._0w1(_1w1);
if (_d01 !== null && _d01 !== undefined) {
return _d01._Q41()
}
return 0
};
_vu1.prototype._Hu1 = function(_kw1, _Zv1, _N9, _lw1) {
var _Ea = this._SY._A31();
var _ZJ = this._SY._e31();
var _G01 = this._SY._f31();
var _aw1 = this._SY._h31();
var _dR = this._SY._i31();
var _dw1 = 1.0 / this._lD;
for (var _C9 = 0; _C9 < _Ea; _C9++) {
if (((_ZJ[_C9] === 0) || ((_ZJ[_C9] & _kw1) !== 0)) && ((_Zv1 === 0) || (_Zv1 === _dR[_C9]))) {
var _1b = (_aw1[_C9]._W9 & 0xff) | ((_aw1[_C9]._jb << 8) & 0xff00) | ((_aw1[_C9]._T9 << 16) & 0xff0000);
_N9._6b(_C9, _G01[_C9]._f3 * _dw1, _G01[_C9]._g3 * _dw1, 1.0, 1.0, 0, _1b, _aw1[_C9]._kb / 255.0)
}
}
};
_vu1.prototype._Ku1 = function(_kw1, _Zv1, _N9, _lw1, __l, _0m, _Z8, _Sd, _Gd) {
var _Ea = this._SY._A31();
var _ZJ = this._SY._e31();
var _G01 = this._SY._f31();
var _dR = this._SY._i31();
var _dw1 = 1.0 / this._lD;
for (var _C9 = 0; _C9 < _Ea; _C9++) {
if (((_ZJ[_C9] === 0) || ((_ZJ[_C9] & _kw1) !== 0)) && ((_Zv1 === 0) || (_Zv1 === _dR[_C9]))) {
_N9._6b(_C9, _G01[_C9]._f3 * _dw1, _G01[_C9]._g3 * _dw1, __l, _0m, _Z8, _Sd, _Gd)
}
}
};
_vu1.prototype._Gu1 = function(_kw1, _Zv1, _N9, _lw1) {
var _Kj = _N9._VF[_lw1 % _N9._mw1()];
if (!_Kj) {
return
}
if (!_Kj._Ga.complete) {
return
}
if (!_Kj._Ga.__b) {
_0c(_Kj)
}
var _Ea = this._SY._A31();
var _ZJ = this._SY._e31();
var _G01 = this._SY._f31();
var _aw1 = this._SY._h31();
var _dR = this._SY._i31();
var _dw1 = 1.0 / this._lD;
var _nw1 = 0;
for (var _C9 = 0; _C9 < _Ea; _C9++) {
if (((_ZJ[_C9] === 0) || ((_ZJ[_C9] & _kw1) !== 0)) && ((_Zv1 === 0) || (_Zv1 === _dR[_C9]))) {
_nw1++
}
}
if (_nw1 === 0) {
return
}
var _2c = _sa._3c(_4c._5c, _Kj._Ga.__b, _sa._6c, _nw1 * 6);
var _7c = _2c._8c() >> 2;
var index = _7c * _2c._9c;
_2c._9c += _nw1 * 6;
var _ac = _2c._bc;
var _cc = _2c._dc;
var _ec = _2c._fc;
var _gc = index;
var _hc = _gc + _7c;
var _ic = _hc + _7c;
var _jc = _ic + _7c;
var _kc = _jc + _7c;
var _lc = _kc + _7c;
var _G9 = -(_N9._23 - _Kj._s5);
var _H9 = -(_N9._33 - _Kj._t5);
var _I9 = _G9 + _Kj._u5;
var _J9 = _H9 + _Kj._v5;
var _ow1 = 0;
for (var _C9 = 0; _C9 < _Ea; _C9++) {
if (((_ZJ[_C9] === 0) || ((_ZJ[_C9] & _kw1) !== 0)) && ((_Zv1 === 0) || (_Zv1 === _dR[_C9]))) {
var _f3 = _G01[_C9]._f3 * _dw1;
var _g3 = _G01[_C9]._g3 * _dw1;
_ac[_gc + 0] = _ac[_kc + 0] = _ac[_lc + 0] = _f3 + _G9;
_ac[_gc + 1] = _ac[_hc + 1] = _ac[_lc + 1] = _g3 + _H9;
_ac[_hc + 0] = _ac[_ic + 0] = _ac[_jc + 0] = _f3 + _I9;
_ac[_ic + 1] = _ac[_jc + 1] = _ac[_kc + 1] = _g3 + _J9;
var _1b = (_aw1[_C9]._W9 & 0xff) | ((_aw1[_C9]._jb << 8) & 0xff00) | ((_aw1[_C9]._T9 << 16) & 0xff0000) | ((_aw1[_C9]._kb << 24) & 0xff000000);
_cc[_gc] = _cc[_hc] = _cc[_ic] = _cc[_jc] = _cc[_kc] = _cc[_lc] = _1b;
_ec[_gc + 0] = _ec[_kc + 0] = _ec[_lc + 0] = _Kj._f3 / _Kj._Ga.width;
_ec[_gc + 1] = _ec[_hc + 1] = _ec[_lc + 1] = _Kj._g3 / _Kj._Ga.height;
_ec[_hc + 0] = _ec[_ic + 0] = _ec[_jc + 0] = (_Kj._f3 + _Kj._J3) / _Kj._Ga.width;
_ec[_ic + 1] = _ec[_jc + 1] = _ec[_kc + 1] = (_Kj._g3 + _Kj._K3) / _Kj._Ga.height;
var _pw1 = _7c * 6;
_gc += _pw1;
_hc += _pw1;
_ic += _pw1;
_jc += _pw1;
_kc += _pw1;
_lc += _pw1
}
}
};
_vu1.prototype._Ju1 = function(_kw1, _Zv1, _N9, _lw1, __l, _0m, _Z8, _Sd, _Gd) {
_Z8 = (_Z8 * Math.PI) / 180.0;
var _Kj = _N9._VF[_lw1 % _N9._mw1()];
if (!_Kj) {
return
}
if (!_Kj._Ga.complete) {
return
}
if (!_Kj._Ga.__b) {
_0c(_Kj)
}
var _Ea = this._SY._A31();
var _ZJ = this._SY._e31();
var _G01 = this._SY._f31();
var _dR = this._SY._i31();
var _dw1 = 1.0 / this._lD;
var _nw1 = 0;
for (var _C9 = 0; _C9 < _Ea; _C9++) {
if (((_ZJ[_C9] === 0) || ((_ZJ[_C9] & _kw1) !== 0)) && ((_Zv1 === 0) || (_Zv1 === _dR[_C9]))) {
_nw1++
}
}
if (_nw1 === 0) {
return
}
var _2c = _sa._3c(_4c._5c, _Kj._Ga.__b, _sa._6c, _nw1 * 6);
var _7c = _2c._8c() >> 2;
var index = _7c * _2c._9c;
_2c._9c += _nw1 * 6;
var _ac = _2c._bc;
var _cc = _2c._dc;
var _ec = _2c._fc;
var _gc = index;
var _hc = _gc + _7c;
var _ic = _hc + _7c;
var _jc = _ic + _7c;
var _kc = _jc + _7c;
var _lc = _kc + _7c;
var _1b = _Sd | (((_Gd * 255) & 0xff) << 24);
var _G9 = -__l * (_N9._23 - _Kj._s5);
var _H9 = -_0m * (_N9._33 - _Kj._t5);
var _I9 = _G9 + (__l * _Kj._u5);
var _J9 = _H9 + (_0m * _Kj._v5);
var _ow1 = 0;
if (Math.abs(_Z8) < 0.0001) {
for (var _C9 = 0; _C9 < _Ea; _C9++) {
if (((_ZJ[_C9] === 0) || ((_ZJ[_C9] & _kw1) !== 0)) && ((_Zv1 === 0) || (_Zv1 === _dR[_C9]))) {
var _f3 = _G01[_C9]._f3 * _dw1;
var _g3 = _G01[_C9]._g3 * _dw1;
_ac[_gc + 0] = _ac[_kc + 0] = _ac[_lc + 0] = _f3 + _G9;
_ac[_gc + 1] = _ac[_hc + 1] = _ac[_lc + 1] = _g3 + _H9;
_ac[_hc + 0] = _ac[_ic + 0] = _ac[_jc + 0] = _f3 + _I9;
_ac[_ic + 1] = _ac[_jc + 1] = _ac[_kc + 1] = _g3 + _J9;
_cc[_gc] = _cc[_hc] = _cc[_ic] = _cc[_jc] = _cc[_kc] = _cc[_lc] = _1b;
_ec[_gc + 0] = _ec[_kc + 0] = _ec[_lc + 0] = _Kj._f3 / _Kj._Ga.width;
_ec[_gc + 1] = _ec[_hc + 1] = _ec[_lc + 1] = _Kj._g3 / _Kj._Ga.height;
_ec[_hc + 0] = _ec[_ic + 0] = _ec[_jc + 0] = (_Kj._f3 + _Kj._J3) / _Kj._Ga.width;
_ec[_ic + 1] = _ec[_jc + 1] = _ec[_kc + 1] = (_Kj._g3 + _Kj._K3) / _Kj._Ga.height;
var _pw1 = _7c * 6;
_gc += _pw1;
_hc += _pw1;
_ic += _pw1;
_jc += _pw1;
_kc += _pw1;
_lc += _pw1
}
}
} else {
var _la = Math.sin(_Z8);
var _ma = Math.cos(_Z8);
var _qw1 = _G9 * _ma;
var _rw1 = _I9 * _ma;
var _sw1 = _H9 * _ma;
var _tw1 = _J9 * _ma;
var _uw1 = _G9 * _la;
var _vw1 = _I9 * _la;
var _ww1 = _H9 * _la;
var _xw1 = _J9 * _la;
for (var _C9 = 0; _C9 < _Ea; _C9++) {
if (((_ZJ[_C9] === 0) || ((_ZJ[_C9] & _kw1) !== 0)) && ((_Zv1 === 0) || (_Zv1 === _dR[_C9]))) {
var _f3 = _G01[_C9]._f3 * _dw1;
var _g3 = _G01[_C9]._g3 * _dw1;
_ac[_gc + 0] = _ac[_lc + 0] = _f3 + _qw1 + _ww1;
_ac[_gc + 1] = _ac[_lc + 1] = _g3 - _uw1 + _sw1;
_ac[_ic + 0] = _ac[_jc + 0] = _f3 + _rw1 + _xw1;
_ac[_ic + 1] = _ac[_jc + 1] = _g3 - _vw1 + _tw1;
_ac[_hc + 1] = _g3 - _vw1 + _sw1;
_ac[_hc + 0] = _f3 + _rw1 + _ww1;
_ac[_kc + 0] = _f3 + _qw1 + _xw1;
_ac[_kc + 1] = _g3 - _uw1 + _tw1;
_cc[_gc] = _cc[_hc] = _cc[_ic] = _cc[_jc] = _cc[_kc] = _cc[_lc] = _1b;
_ec[_gc + 0] = _ec[_kc + 0] = _ec[_lc + 0] = _Kj._f3 / _Kj._Ga.width;
_ec[_gc + 1] = _ec[_hc + 1] = _ec[_lc + 1] = _Kj._g3 / _Kj._Ga.height;
_ec[_hc + 0] = _ec[_ic + 0] = _ec[_jc + 0] = (_Kj._f3 + _Kj._J3) / _Kj._Ga.width;
_ec[_ic + 1] = _ec[_jc + 1] = _ec[_kc + 1] = (_Kj._g3 + _Kj._K3) / _Kj._Ga.height;
var _pw1 = _7c * 6;
_gc += _pw1;
_hc += _pw1;
_ic += _pw1;
_jc += _pw1;
_kc += _pw1;
_lc += _pw1
}
}
}
};
_vu1.prototype._A31 = function() {
return this._SY._A31()
};
_vu1.prototype._V21 = function() {
return this._SY._V21();
};
_vu1.prototype._431 = function() {
return this._SY._431() * (1.0 / this._lD)
};
_vu1.prototype._Y21 = function() {
return this._SY._Y21()
};
_vu1.prototype._231 = function() {
return this._SY._231()
};
_vu1.prototype.__21 = function() {
return this._SY.__21()
};
_vu1.prototype._W21 = function(_yw1) {
this._SY._W21(_yw1)
};
_vu1.prototype._331 = function(_7q1) {
this._SY._331(_7q1 * this._lD)
};
_vu1.prototype._X21 = function(_WC) {
this._SY._X21(_WC)
};
_vu1.prototype._031 = function(_aD) {
this._SY._031(_aD)
};
_vu1.prototype._Z21 = function(_ar1) {
this._SY._Z21(_ar1);
};
var _x8 = {};
_x8._zw1 = function(name, parent) {
this.name = name;
this.parent = parent
};
_x8._zw1.prototype = {
length: 0,
_f3: 0,
_g3: 0,
_i5: 0,
_E3: 1,
_F3: 1,
_Aw1: !0,
_Bw1: !0
};
_x8._Cw1 = function(name, _Dw1) {
this.name = name;
this._Dw1 = _Dw1
};
_x8._Cw1.prototype = {
_T9: 1,
_jb: 1,
_W9: 1,
_kb: 1,
_Ew1: null,
_Fw1: !1
};
_x8._2b = function(_Dw1, parent) {
this.data = _Dw1;
this.parent = parent;
this._Gw1()
};
_x8._2b._3b = !1;
_x8._2b.prototype = {
_f3: 0,
_g3: 0,
_i5: 0,
_E3: 1,
_F3: 1,
_Hw1: 0,
_Iw1: 0,
_Jw1: 0,
_Kw1: 0,
_Ub: 0,
_Lw1: 0,
_Mw1: 0,
_Nw1: 1,
_Ow1: 1,
_49: function(_e9, _f9) {
var parent = this.parent;
if (parent != null) {
this._Jw1 = this._f3 * parent._Hw1 + this._g3 * parent._Iw1 + parent._Jw1;
this._Lw1 = this._f3 * parent._Kw1 + this._g3 * parent._Ub + parent._Lw1;
if (this.data._Aw1) {
this._Nw1 = parent._Nw1 * this._E3;
this._Ow1 = parent._Ow1 * this._F3
} else {
this._Nw1 = this._E3;
this._Ow1 = this._F3
}
this._Mw1 = this.data._Bw1 ? parent._Mw1 + this._i5: this._i5
} else {
this._Jw1 = _e9 ? -this._f3: this._f3;
this._Lw1 = _f9 != _x8._2b._3b ? -this._g3: this._g3;
this._Nw1 = this._E3;
this._Ow1 = this._F3;
this._Mw1 = this._i5;
}
var _Pw1 = this._Mw1 * Math.PI / 180;
var cos = Math.cos(_Pw1);
var sin = Math.sin(_Pw1);
this._Hw1 = cos * this._Nw1;
this._Kw1 = sin * this._Nw1;
this._Iw1 = -sin * this._Ow1;
this._Ub = cos * this._Ow1;
if (_e9) {
this._Hw1 = -this._Hw1;
this._Iw1 = -this._Iw1
}
if (_f9 != _x8._2b._3b) {
this._Kw1 = -this._Kw1;
this._Ub = -this._Ub
}
},
_Gw1: function() {
var data = this.data;
this._f3 = data._f3;
this._g3 = data._g3;
this._i5 = data._i5;
this._E3 = data._E3;
this._F3 = data._F3
}
};
_x8._Qw1 = function(_Rw1, _09, _tb) {
this.data = _Rw1;
this._09 = _09;
this._tb = _tb;
this._Gw1();
};
_x8._Qw1.prototype = {
_T9: 1,
_jb: 1,
_W9: 1,
_kb: 1,
_Sw1: 0,
_ib: null,
_Tw1: [],
_Uw1: function(_ib) {
this._ib = _ib;
this._Sw1 = this._09._5j;
this._Tw1.length = 0
},
_Vw1: function(_5j) {
this._Sw1 = this._09._5j - _5j
},
_Ww1: function() {
return this._09._5j - this._Sw1
},
_Gw1: function() {
var data = this.data;
this._T9 = data._T9;
this._jb = data._jb;
this._W9 = data._W9;
this._kb = data._kb;
var _Xw1 = this._09.data._fb;
for (var _H3 = 0,
_C9 = _Xw1.length; _H3 < _C9; _H3++) {
if (_Xw1[_H3] == data) {
this._Uw1(!data._Ew1 ? null: this._09._Yw1(_H3, data._Ew1));
break
}
}
}
};
_x8._Zw1 = function(name) {
this.name = name;
this.__w1 = {}
};
_x8._Zw1.prototype = {
_0x1: function(_1x1, name, _ib) {
this.__w1[_1x1 + ":" + name] = _ib
},
_2x1: function(_1x1, name) {
return this.__w1[_1x1 + ":" + name]
},
_3x1: function(_09, _4x1) {
for (var _pz in _4x1.__w1) {
var _5x1 = _pz.indexOf(":");
var _1x1 = parseInt(_pz.substring(0, _5x1));
var name = _pz.substring(_5x1 + 1);
var _gb = _09._fb[_1x1];
if (_gb._ib && _gb._ib.name == name) {
var _ib = this._2x1(_1x1, name);
if (_ib) _gb._Uw1(_ib)
}
}
}
};
_x8._6x1 = function(name, _99, duration) {
this.name = name;
this._99 = _99;
this.duration = duration
};
_x8._6x1.prototype = {
apply: function(_09, _7x1, _5j, loop, _8x1) {
if (loop && this.duration != 0) {
_5j %= this.duration;
_7x1 %= this.duration
}
var _99 = this._99;
for (var _H3 = 0,
_C9 = _99.length; _H3 < _C9; _H3++) _99[_H3].apply(_09, _7x1, _5j, _8x1, 1)
},
_9x1: function(_09, _7x1, _5j, loop, _8x1, alpha) {
if (loop && this.duration != 0) {
_5j %= this.duration;
_7x1 %= this.duration
}
var _99 = this._99;
for (var _H3 = 0,
_C9 = _99.length; _H3 < _C9; _H3++) _99[_H3].apply(_09, _7x1, _5j, _8x1, alpha)
}
};
_x8._ax1 = function(_bx1, target, _ML) {
var _si = 0;
var _ri = Math.floor(_bx1.length / _ML) - 2;
if (_ri == 0) return _ML;
var current = _ri >>> 1;
while (!0) {
if (_bx1[(current + 1) * _ML] <= target) _si = current + 1;
else _ri = current;
if (_si == _ri) return (_si + 1) * _ML;
current = (_si + _ri) >>> 1
}
};
_x8._cx1 = function(_bx1, target, _ML) {
for (var _H3 = 0,
_A3 = _bx1.length - _ML; _H3 <= _A3; _H3 += _ML) if (_bx1[_H3] > target) return _H3;
return - 1
};
_x8._dx1 = function(_59) {
this._ex1 = [];
this._ex1.length = (_59 - 1) * 6
};
_x8._dx1.prototype = {
_fx1: function(_gx1) {
this._ex1[_gx1 * 6] = 0
},
_hx1: function(_gx1) {
this._ex1[_gx1 * 6] = -1
},
_ix1: function(_gx1, _jx1, _kx1, _lx1, _mx1) {
var _nx1 = 1 / 10;
var _ox1 = _nx1 * _nx1;
var _px1 = _ox1 * _nx1;
var _qx1 = 3 * _nx1;
var _rx1 = 3 * _ox1;
var _sx1 = 6 * _ox1;
var _tx1 = 6 * _px1;
var _ux1 = -_jx1 * 2 + _lx1;
var _vx1 = -_kx1 * 2 + _mx1;
var _wx1 = (_jx1 - _lx1) * 3 + 1;
var _xx1 = (_kx1 - _mx1) * 3 + 1;
var _H3 = _gx1 * 6;
var _ex1 = this._ex1;
_ex1[_H3] = _jx1 * _qx1 + _ux1 * _rx1 + _wx1 * _px1;
_ex1[_H3 + 1] = _kx1 * _qx1 + _vx1 * _rx1 + _xx1 * _px1;
_ex1[_H3 + 2] = _ux1 * _sx1 + _wx1 * _tx1;
_ex1[_H3 + 3] = _vx1 * _sx1 + _xx1 * _tx1;
_ex1[_H3 + 4] = _wx1 * _tx1;
_ex1[_H3 + 5] = _xx1 * _tx1
},
_yx1: function(_gx1, _zx1) {
_zx1 = _zx1 < 0 ? 0 : (_zx1 > 1 ? 1 : _zx1);
var _Ax1 = _gx1 * 6;
var _ex1 = this._ex1;
var _Bx1 = _ex1[_Ax1];
if (!_Bx1) return _zx1;
if (_Bx1 == -1) return 0;
var _Cx1 = _ex1[_Ax1 + 1];
var _Dx1 = _ex1[_Ax1 + 2];
var _Ex1 = _ex1[_Ax1 + 3];
var _Fx1 = _ex1[_Ax1 + 4];
var _Gx1 = _ex1[_Ax1 + 5];
var _f3 = _Bx1,
_g3 = _Cx1;
var _H3 = 10 - 2;
while (!0) {
if (_f3 >= _zx1) {
var _Hx1 = _f3 - _Bx1;
var _Ix1 = _g3 - _Cx1;
return _Ix1 + (_g3 - _Ix1) * (_zx1 - _Hx1) / (_f3 - _Hx1)
}
if (_H3 == 0) break;
_H3--;
_Bx1 += _Dx1;
_Cx1 += _Ex1;
_Dx1 += _Fx1;
_Ex1 += _Gx1;
_f3 += _Bx1;
_g3 += _Cx1
}
return _g3 + (1 - _g3) * (_zx1 - _f3) / (1 - _f3)
}
};
_x8._Jx1 = function(_59) {
this._ex1 = new _x8._dx1(_59);
this.frames = [];
this.frames.length = _59 * 2
};
_x8._Jx1.prototype = {
_Kx1: 0,
_Lx1: function() {
return this.frames.length / 2;
},
_Mx1: function(_gx1, _5j, _0b) {
_gx1 *= 2;
this.frames[_gx1] = _5j;
this.frames[_gx1 + 1] = _0b
},
apply: function(_09, _7x1, _5j, _Nx1, alpha) {
var frames = this.frames;
if (_5j < frames[0]) return;
var _tb = _09._Ox1[this._Kx1];
if (_5j >= frames[frames.length - 2]) {
var _Px1 = _tb.data._i5 + frames[frames.length - 1] - _tb._i5;
while (_Px1 > 180) _Px1 -= 360;
while (_Px1 < -180) _Px1 += 360;
_tb._i5 += _Px1 * alpha;
return
}
var _gx1 = _x8._ax1(frames, _5j, 2);
var _Qx1 = frames[_gx1 - 1];
var _Rx1 = frames[_gx1];
var _zx1 = 1 - (_5j - _Rx1) / (frames[_gx1 - 2] - _Rx1);
_zx1 = this._ex1._yx1(_gx1 / 2 - 1, _zx1);
var _Px1 = frames[_gx1 + 1] - _Qx1;
while (_Px1 > 180) _Px1 -= 360;
while (_Px1 < -180) _Px1 += 360;
_Px1 = _tb.data._i5 + (_Qx1 + _Px1 * _zx1) - _tb._i5;
while (_Px1 > 180) _Px1 -= 360;
while (_Px1 < -180) _Px1 += 360;
_tb._i5 += _Px1 * alpha
}
};
_x8._Sx1 = function(_59) {
this._ex1 = new _x8._dx1(_59);
this.frames = [];
this.frames.length = _59 * 3
};
_x8._Sx1.prototype = {
_Kx1: 0,
_Lx1: function() {
return this.frames.length / 3
},
_Mx1: function(_gx1, _5j, _f3, _g3) {
_gx1 *= 3;
this.frames[_gx1] = _5j;
this.frames[_gx1 + 1] = _f3;
this.frames[_gx1 + 2] = _g3
},
apply: function(_09, _7x1, _5j, _Nx1, alpha) {
var frames = this.frames;
if (_5j < frames[0]) return;
var _tb = _09._Ox1[this._Kx1];
if (_5j >= frames[frames.length - 3]) {
_tb._f3 += (_tb.data._f3 + frames[frames.length - 2] - _tb._f3) * alpha;
_tb._g3 += (_tb.data._g3 + frames[frames.length - 1] - _tb._g3) * alpha;
return
}
var _gx1 = _x8._ax1(frames, _5j, 3);
var _Tx1 = frames[_gx1 - 2];
var _Ux1 = frames[_gx1 - 1];
var _Rx1 = frames[_gx1];
var _zx1 = 1 - (_5j - _Rx1) / (frames[_gx1 + -3] - _Rx1);
_zx1 = this._ex1._yx1(_gx1 / 3 - 1, _zx1);
_tb._f3 += (_tb.data._f3 + _Tx1 + (frames[_gx1 + 1] - _Tx1) * _zx1 - _tb._f3) * alpha;
_tb._g3 += (_tb.data._g3 + _Ux1 + (frames[_gx1 + 2] - _Ux1) * _zx1 - _tb._g3) * alpha;
}
};
_x8._Vx1 = function(_59) {
this._ex1 = new _x8._dx1(_59);
this.frames = [];
this.frames.length = _59 * 3
};
_x8._Vx1.prototype = {
_Kx1: 0,
_Lx1: function() {
return this.frames.length / 3
},
_Mx1: function(_gx1, _5j, _f3, _g3) {
_gx1 *= 3;
this.frames[_gx1] = _5j;
this.frames[_gx1 + 1] = _f3;
this.frames[_gx1 + 2] = _g3
},
apply: function(_09, _7x1, _5j, _Nx1, alpha) {
var frames = this.frames;
if (_5j < frames[0]) return;
var _tb = _09._Ox1[this._Kx1];
if (_5j >= frames[frames.length - 3]) {
_tb._E3 += (_tb.data._E3 - 1 + frames[frames.length - 2] - _tb._E3) * alpha;
_tb._F3 += (_tb.data._F3 - 1 + frames[frames.length - 1] - _tb._F3) * alpha;
return
}
var _gx1 = _x8._ax1(frames, _5j, 3);
var _Tx1 = frames[_gx1 - 2];
var _Ux1 = frames[_gx1 - 1];
var _Rx1 = frames[_gx1];
var _zx1 = 1 - (_5j - _Rx1) / (frames[_gx1 + -3] - _Rx1);
_zx1 = this._ex1._yx1(_gx1 / 3 - 1, _zx1);
_tb._E3 += (_tb.data._E3 - 1 + _Tx1 + (frames[_gx1 + 1] - _Tx1) * _zx1 - _tb._E3) * alpha;
_tb._F3 += (_tb.data._F3 - 1 + _Ux1 + (frames[_gx1 + 2] - _Ux1) * _zx1 - _tb._F3) * alpha
}
};
_x8._Wx1 = function(_59) {
this._ex1 = new _x8._dx1(_59);
this.frames = [];
this.frames.length = _59 * 5
};
_x8._Wx1.prototype = {
_1x1: 0,
_Lx1: function() {
return this.frames.length / 5;
},
_Mx1: function(_gx1, _5j, _T9, _jb, _W9, _kb) {
_gx1 *= 5;
this.frames[_gx1] = _5j;
this.frames[_gx1 + 1] = _T9;
this.frames[_gx1 + 2] = _jb;
this.frames[_gx1 + 3] = _W9;
this.frames[_gx1 + 4] = _kb
},
apply: function(_09, _7x1, _5j, _Nx1, alpha) {
var frames = this.frames;
if (_5j < frames[0]) return;
var _T9, _jb, _W9, _kb;
if (_5j >= frames[frames.length - 5]) {
var _H3 = frames.length - 1;
_T9 = frames[_H3 - 3];
_jb = frames[_H3 - 2];
_W9 = frames[_H3 - 1];
_kb = frames[_H3]
} else {
var _gx1 = _x8._ax1(frames, _5j, 5);
var _Xx1 = frames[_gx1 - 4];
var _Yx1 = frames[_gx1 - 3];
var _Zx1 = frames[_gx1 - 2];
var __x1 = frames[_gx1 - 1];
var _Rx1 = frames[_gx1];
var _zx1 = 1 - (_5j - _Rx1) / (frames[_gx1 - 5] - _Rx1);
_zx1 = this._ex1._yx1(_gx1 / 5 - 1, _zx1);
_T9 = _Xx1 + (frames[_gx1 + 1] - _Xx1) * _zx1;
_jb = _Yx1 + (frames[_gx1 + 2] - _Yx1) * _zx1;
_W9 = _Zx1 + (frames[_gx1 + 3] - _Zx1) * _zx1;
_kb = __x1 + (frames[_gx1 + 4] - __x1) * _zx1
}
var _gb = _09._fb[this._1x1];
if (alpha < 1) {
_gb._T9 += (_T9 - _gb._T9) * alpha;
_gb._jb += (_jb - _gb._jb) * alpha;
_gb._W9 += (_W9 - _gb._W9) * alpha;
_gb._kb += (_kb - _gb._kb) * alpha
} else {
_gb._T9 = _T9;
_gb._jb = _jb;
_gb._W9 = _W9;
_gb._kb = _kb
}
}
};
_x8._0y1 = function(_59) {
this._ex1 = new _x8._dx1(_59);
this.frames = [];
this.frames.length = _59;
this._1y1 = [];
this._1y1.length = _59
};
_x8._0y1.prototype = {
_1x1: 0,
_Lx1: function() {
return this.frames.length
},
_Mx1: function(_gx1, _5j, _Ew1) {
this.frames[_gx1] = _5j;
this._1y1[_gx1] = _Ew1
},
apply: function(_09, _7x1, _5j, _Nx1, alpha) {
var frames = this.frames;
if (_5j < frames[0]) return;
var _gx1;
if (_5j >= frames[frames.length - 1]) _gx1 = frames.length - 1;
else _gx1 = _x8._ax1(frames, _5j, 1) - 1;
var _Ew1 = this._1y1[_gx1];
_09._fb[this._1x1]._Uw1(!_Ew1 ? null: _09._Yw1(this._1x1, _Ew1))
}
};
_x8._2y1 = function(_59) {
this.frames = [];
this.frames.length = _59;
this._8x1 = [];
this._8x1.length = _59
};
_x8._2y1.prototype = {
_Lx1: function() {
return this.frames.length
},
_Mx1: function(_gx1, _5j, event) {
this.frames[_gx1] = _5j;
this._8x1[_gx1] = event
},
apply: function(_09, _7x1, _5j, _Nx1, alpha) {
if (!_Nx1) return;
var frames = this.frames;
var _59 = frames.length;
if (_7x1 > _5j) {
this.apply(_09, _7x1, Number.MAX_VALUE, _Nx1, alpha);
_7x1 = -1
} else if (_7x1 >= frames[_59 - 1]) return;
if (_5j < frames[0]) return;
var _gx1;
if (_7x1 < frames[0]) _gx1 = 0;
else {
_gx1 = _x8._ax1(frames, _7x1, 1);
var _k9 = frames[_gx1];
while (_gx1 > 0) {
if (frames[_gx1 - 1] != _k9) break;
_gx1--
}
}
var _8x1 = this._8x1;
for (; _gx1 < _59 && _5j >= frames[_gx1]; _gx1++) _Nx1.push(_8x1[_gx1])
}
};
_x8._3y1 = function(_59) {
this.frames = [];
this.frames.length = _59;
this._4y1 = [];
this._4y1.length = _59
};
_x8._3y1.prototype = {
_Lx1: function() {
return this.frames.length
},
_Mx1: function(_gx1, _5j, _hb) {
this.frames[_gx1] = _5j;
this._4y1[_gx1] = _hb
},
apply: function(_09, _7x1, _5j, _Nx1, alpha) {
var frames = this.frames;
if (_5j < frames[0]) return;
var _gx1;
if (_5j >= frames[frames.length - 1]) _gx1 = frames.length - 1;
else _gx1 = _x8._ax1(frames, _5j, 1) - 1;
var _hb = _09._hb;
var _fb = _09._fb;
var _5y1 = this._4y1[_gx1];
if (!_5y1) {
for (var _H3 = 0,
_C9 = _fb.length; _H3 < _C9; _H3++) _hb[_H3] = _fb[_H3]
} else {
for (var _H3 = 0,
_C9 = _5y1.length; _H3 < _C9; _H3++) _hb[_H3] = _09._fb[_5y1[_H3]]
}
}
};
_x8._6y1 = function(_59) {
this._ex1 = new _x8._dx1(_59);
this.frames = [];
this.frames.length = _59;
this._7y1 = [];
this._7y1.length = _59
};
_x8._6y1.prototype = {
_1x1: 0,
_ib: 0,
_Lx1: function() {
return this.frames.length
},
_Mx1: function(_gx1, _5j, _rb) {
this.frames[_gx1] = _5j;
this._7y1[_gx1] = _rb
},
apply: function(_09, _7x1, _5j, _Nx1, alpha) {
var _gb = _09._fb[this._1x1];
if (_gb._ib != _gb._ib) return;
var frames = this.frames;
if (_5j < frames[0]) {
_gb._Tw1.length = 0;
return
}
var _7y1 = this._7y1;
var _LO = _7y1[0].length;
var _rb = _gb._Tw1;
if (_rb.length < _LO) {
_rb = [];
_rb.length = _LO;
_gb._Tw1 = _rb
}
_gb._Tw1.length = _LO;
if (_5j >= frames[frames.length - 1]) {
var _8y1 = _7y1[frames.length - 1];
if (alpha < 1) {
for (var _H3 = 0; _H3 < _LO; _H3++) _rb[_H3] += (_8y1[_H3] - _rb[_H3]) * alpha
} else {
for (var _H3 = 0; _H3 < _LO; _H3++) _rb[_H3] = _8y1[_H3]
}
return
}
var _gx1 = _x8._ax1(frames, _5j, 1);
var _Rx1 = frames[_gx1];
var _zx1 = 1 - (_5j - _Rx1) / (frames[_gx1 - 1] - _Rx1);
_zx1 = this._ex1._yx1(_gx1 - 1, _zx1 < 0 ? 0 : (_zx1 > 1 ? 1 : _zx1));
var _9y1 = _7y1[_gx1 - 1];
var _ay1 = _7y1[_gx1];
if (alpha < 1) {
for (var _H3 = 0; _H3 < _LO; _H3++) {
var _u11 = _9y1[_H3];
_rb[_H3] += (_u11 + (_ay1[_H3] - _u11) * _zx1 - _rb[_H3]) * alpha
}
} else {
for (var _H3 = 0; _H3 < _LO; _H3++) {
var _u11 = _9y1[_H3];
_rb[_H3] = _u11 + (_ay1[_H3] - _u11) * _zx1
}
}
}
};
_x8._by1 = function() {
this._Ox1 = [];
this._fb = [];
this._cy1 = [];
this._8x1 = [];
this._B8 = []
};
_x8._by1.prototype = {
_R8: null,
_dy1: function(_ey1) {
var _Ox1 = this._Ox1;
for (var _H3 = 0,
_C9 = _Ox1.length; _H3 < _C9; _H3++) if (_Ox1[_H3].name == _ey1) return _Ox1[_H3];
return null
},
_fy1: function(_ey1) {
var _Ox1 = this._Ox1;
for (var _H3 = 0,
_C9 = _Ox1.length; _H3 < _C9; _H3++) if (_Ox1[_H3].name == _ey1) return _H3;
return - 1
},
_gy1: function(_hy1) {
var _fb = this._fb;
for (var _H3 = 0,
_C9 = _fb.length; _H3 < _C9; _H3++) {
if (_fb[_H3].name == _hy1) return _gb[_H3]
}
return null
},
_iy1: function(_hy1) {
var _fb = this._fb;
for (var _H3 = 0,
_C9 = _fb.length; _H3 < _C9; _H3++) if (_fb[_H3].name == _hy1) return _H3;
return - 1
},
_jy1: function(_ky1) {
var _cy1 = this._cy1;
for (var _H3 = 0,
_C9 = _cy1.length; _H3 < _C9; _H3++) if (_cy1[_H3].name == _ky1) return _cy1[_H3];
return null
},
_ly1: function(_my1) {
var _8x1 = this._8x1;
for (var _H3 = 0,
_C9 = _8x1.length; _H3 < _C9; _H3++) if (_8x1[_H3].name == _my1) return _8x1[_H3];
return null
},
_N8: function(_ny1) {
var _B8 = this._B8;
for (var _H3 = 0,
_C9 = _B8.length; _H3 < _C9; _H3++) if (_B8[_H3].name == _ny1) return _B8[_H3];
return null
}
};
_x8._y8 = function(_oy1) {
this.data = _oy1;
this._Ox1 = [];
for (var _H3 = 0,
_C9 = _oy1._Ox1.length; _H3 < _C9; _H3++) {
var _Dw1 = _oy1._Ox1[_H3];
var parent = !_Dw1.parent ? null: this._Ox1[_oy1._Ox1.indexOf(_Dw1.parent)];
this._Ox1.push(new _x8._2b(_Dw1, parent))
}
this._fb = [];
this._hb = [];
for (var _H3 = 0,
_C9 = _oy1._fb.length; _H3 < _C9; _H3++) {
var _Rw1 = _oy1._fb[_H3];
var _tb = this._Ox1[_oy1._Ox1.indexOf(_Rw1._Dw1)];
var _gb = new _x8._Qw1(_Rw1, this, _tb);
this._fb.push(_gb);
this._hb.push(_gb)
}
};
_x8._y8.prototype = {
_f3: 0,
_g3: 0,
_py1: null,
_T9: 1,
_jb: 1,
_W9: 1,
_kb: 1,
_5j: 0,
_e9: !1,
_f9: !1,
_49: function() {
var _e9 = this._e9;
var _f9 = this._f9;
var _Ox1 = this._Ox1;
for (var _H3 = 0,
_C9 = _Ox1.length; _H3 < _C9; _H3++) _Ox1[_H3]._49(_e9, _f9)
},
_Gw1: function() {
this._qy1();
this._S8()
},
_qy1: function() {
var _Ox1 = this._Ox1;
for (var _H3 = 0,
_C9 = _Ox1.length; _H3 < _C9; _H3++) _Ox1[_H3]._Gw1()
},
_S8: function() {
var _fb = this._fb;
var _hb = this._hb;
for (var _H3 = 0,
_C9 = _fb.length; _H3 < _C9; _H3++) {
_hb[_H3] = _fb[_H3];
_fb[_H3]._Gw1(_H3)
}
},
_29: function() {
return this._Ox1.length == 0 ? null: this._Ox1[0]
},
_dy1: function(_ey1) {
var _Ox1 = this._Ox1;
for (var _H3 = 0,
_C9 = _Ox1.length; _H3 < _C9; _H3++) if (_Ox1[_H3].data.name == _ey1) return _Ox1[_H3];
return null
},
_fy1: function(_ey1) {
var _Ox1 = this._Ox1;
for (var _H3 = 0,
_C9 = _Ox1.length; _H3 < _C9; _H3++) if (_Ox1[_H3].data.name == _ey1) return _H3;
return - 1
},
_gy1: function(_hy1) {
var _fb = this._fb;
for (var _H3 = 0,
_C9 = _fb.length; _H3 < _C9; _H3++) if (_fb[_H3].data.name == _hy1) return _fb[_H3];
return null;
},
_iy1: function(_hy1) {
var _fb = this._fb;
for (var _H3 = 0,
_C9 = _fb.length; _H3 < _C9; _H3++) if (_fb[_H3].data.name == _hy1) return _H3;
return - 1
},
_Q8: function(_ky1) {
var _py1 = this.data._jy1(_ky1);
if (!_py1) throw "Skin not found: " + _ky1;
this._ry1(_py1)
},
_ry1: function(_sy1) {
if (_sy1) {
if (this._py1) _sy1._3x1(this, this._py1);
else {
var _fb = this._fb;
for (var _H3 = 0,
_C9 = _fb.length; _H3 < _C9; _H3++) {
var _gb = _fb[_H3];
var name = _gb.data._Ew1;
if (name) {
var _ib = _sy1._2x1(_H3, name);
if (_ib) _gb._Uw1(_ib)
}
}
}
}
this._py1 = _sy1
},
_ty1: function(_hy1, _Ew1) {
return this._Yw1(this.data._iy1(_hy1), _Ew1)
},
_Yw1: function(_1x1, _Ew1) {
if (this._py1) {
var _ib = this._py1._2x1(_1x1, _Ew1);
if (_ib) return _ib
}
if (this.data._R8) return this.data._R8._2x1(_1x1, _Ew1);
return null
},
_Uw1: function(_hy1, _Ew1) {
var _fb = this._fb;
for (var _H3 = 0,
_C9 = _fb.length; _H3 < _C9; _H3++) {
var _gb = _fb[_H3];
if (_gb.data.name == _hy1) {
var _ib = null;
if (_Ew1) {
_ib = this._Yw1(_H3, _Ew1);
if (!_ib) throw "Attachment not found: " + _Ew1 + ", for slot: " + _hy1
}
_gb._Uw1(_ib);
return
}
}
throw "Slot not found: " + _hy1
},
_b9: function(_uy1) {
this._5j += _uy1
}
};
_x8._vy1 = function(name) {
this.name = name;
};
_x8._vy1.prototype = {
_wy1: 0,
_xy1: 0,
_yy1: null
};
_x8._st = function(data) {
this.data = data
};
_x8._st.prototype = {
_wy1: 0,
_xy1: 0,
_yy1: null
};
_x8._lb = {
_mb: 0,
_zy1: 1,
_nb: 2,
_ob: 3
};
_x8._Ay1 = function(name) {
this.name = name;
this._L3 = [];
this._L3.length = 8;
this._wb = [];
this._wb.length = 8
};
_x8._Ay1.prototype = {
type: _x8._lb._mb,
_f3: 0,
_g3: 0,
_i5: 0,
_E3: 1,
_F3: 1,
width: 0,
height: 0,
_T9: 1,
_jb: 1,
_W9: 1,
_kb: 1,
_By1: null,
_Sa: null,
_Cy1: 0,
_Dy1: 0,
_Ey1: 0,
_Fy1: 0,
_Gy1: 0,
_Hy1: 0,
_Iy1: function(_vb, _xb, _sU, _ic, rotate) {
var _wb = this._wb;
if (rotate) {
_wb[2] = _vb;
_wb[3] = _ic;
_wb[4] = _vb;
_wb[5] = _xb;
_wb[6] = _sU;
_wb[7] = _xb;
_wb[0] = _sU;
_wb[1] = _ic
} else {
_wb[0] = _vb;
_wb[1] = _ic;
_wb[2] = _vb;
_wb[3] = _xb;
_wb[4] = _sU;
_wb[5] = _xb;
_wb[6] = _sU;
_wb[7] = _ic
}
},
_Jy1: function() {
var _Ky1 = this.width / this._Gy1 * this._E3;
var _Ly1 = this.height / this._Hy1 * this._F3;
var _My1 = -this.width / 2 * this._E3 + this._Cy1 * _Ky1;
var _Ny1 = -this.height / 2 * this._F3 + this._Dy1 * _Ly1;
var _Oy1 = _My1 + this._Ey1 * _Ky1;
var _Py1 = _Ny1 + this._Fy1 * _Ly1;
var _Pw1 = this._i5 * Math.PI / 180;
var cos = Math.cos(_Pw1);
var sin = Math.sin(_Pw1);
var _Qy1 = _My1 * cos + this._f3;
var _Ry1 = _My1 * sin;
var _Sy1 = _Ny1 * cos + this._g3;
var _Ty1 = _Ny1 * sin;
var _Uy1 = _Oy1 * cos + this._f3;
var _Vy1 = _Oy1 * sin;
var _Wy1 = _Py1 * cos + this._g3;
var _Xy1 = _Py1 * sin;
var _L3 = this._L3;
_L3[0] = _Qy1 - _Ty1;
_L3[1] = _Sy1 + _Ry1;
_L3[2] = _Qy1 - _Xy1;
_L3[3] = _Wy1 + _Ry1;
_L3[4] = _Uy1 - _Xy1;
_L3[5] = _Wy1 + _Vy1;
_L3[6] = _Uy1 - _Ty1;
_L3[7] = _Sy1 + _Vy1
},
_sb: function(_f3, _g3, _tb, _rb) {
_f3 += _tb._Jw1;
_g3 += _tb._Lw1;
var _Hw1 = _tb._Hw1,
_Iw1 = _tb._Iw1,
_Kw1 = _tb._Kw1,
_Ub = _tb._Ub;
var _L3 = this._L3;
_rb[0] = _L3[0] * _Hw1 + _L3[1] * _Iw1 + _f3;
_rb[1] = _L3[0] * _Kw1 + _L3[1] * _Ub + _g3;
_rb[2] = _L3[2] * _Hw1 + _L3[3] * _Iw1 + _f3;
_rb[3] = _L3[2] * _Kw1 + _L3[3] * _Ub + _g3;
_rb[4] = _L3[4] * _Hw1 + _L3[5] * _Iw1 + _f3;
_rb[5] = _L3[4] * _Kw1 + _L3[5] * _Ub + _g3;
_rb[6] = _L3[6] * _Hw1 + _L3[7] * _Iw1 + _f3;
_rb[7] = _L3[6] * _Kw1 + _L3[7] * _Ub + _g3
}
};
_x8._Yy1 = function(name) {
this.name = name
};
_x8._Yy1.prototype = {
type: _x8._lb._nb,
_rb: null,
_wb: null,
_Zy1: null,
_Fb: null,
__y1: 0,
_T9: 1,
_jb: 1,
_W9: 1,
_kb: 1,
_By1: null,
_Sa: null,
_0z1: 0,
_1z1: 0,
_2z1: 0,
_3z1: 0,
_4z1: !1,
_Cy1: 0,
_Dy1: 0,
_Ey1: 0,
_Fy1: 0,
_Gy1: 0,
_Hy1: 0,
_5z1: null,
width: 0,
height: 0,
_6z1: function() {
var width = this._2z1 - this._0z1,
height = this._3z1 - this._1z1;
var _Zy1 = this._Zy1,
_0z1 = this._0z1,
_1z1 = this._1z1;
var _C9 = this._Zy1.length;
if (!this._wb || this._wb.length != _C9) {
this._wb = [];
this._wb.length = _C9
}
if (this._4z1) {
for (var _H3 = 0; _H3 < _C9; _H3 += 2) {
this._wb[_H3] = _0z1 + _Zy1[_H3 + 1] * width;
this._wb[_H3 + 1] = _1z1 + height - _Zy1[_H3] * height
}
} else {
for (var _H3 = 0; _H3 < _C9; _H3 += 2) {
this._wb[_H3] = _0z1 + _Zy1[_H3] * width;
this._wb[_H3 + 1] = _1z1 + _Zy1[_H3 + 1] * height
}
}
},
_Eb: function(_f3, _g3, _gb, _7z1) {
var _tb = _gb._tb;
_f3 += _tb._Jw1;
_g3 += _tb._Lw1;
var _Hw1 = _tb._Hw1,
_Iw1 = _tb._Iw1,
_Kw1 = _tb._Kw1,
_Ub = _tb._Ub;
var _rb = this._rb;
var _8z1 = _rb.length;
if (_gb._Tw1.length == _8z1) _rb = _gb._Tw1;
for (var _H3 = 0; _H3 < _8z1; _H3 += 2) {
var _AQ = _rb[_H3];
var _BQ = _rb[_H3 + 1];
_7z1[_H3] = _AQ * _Hw1 + _BQ * _Iw1 + _f3;
_7z1[_H3 + 1] = _AQ * _Kw1 + _BQ * _Ub + _g3
}
}
};
_x8._9z1 = function(name) {
this.name = name
};
_x8._9z1.prototype = {
type: _x8._lb._ob,
_Ox1: null,
_az1: null,
_wb: null,
_Zy1: null,
_Fb: null,
__y1: 0,
_T9: 1,
_jb: 1,
_W9: 1,
_kb: 1,
_By1: null,
_Sa: null,
_0z1: 0,
_1z1: 0,
_2z1: 0,
_3z1: 0,
_4z1: !1,
_Cy1: 0,
_Dy1: 0,
_Ey1: 0,
_Fy1: 0,
_Gy1: 0,
_Hy1: 0,
_5z1: null,
width: 0,
height: 0,
_6z1: function(_vb, _xb, _sU, _ic, rotate) {
var width = this._2z1 - this._0z1,
height = this._3z1 - this._1z1;
var _Zy1 = this._Zy1,
_0z1 = this._0z1,
_1z1 = this._1z1;
var _C9 = _Zy1.length;
if (!this._wb || this._wb.length != _C9) {
this._wb = [];
this._wb.length = _C9
}
if (this._4z1) {
for (var _H3 = 0; _H3 < _C9; _H3 += 2) {
this._wb[_H3] = _0z1 + _Zy1[_H3 + 1] * width;
this._wb[_H3 + 1] = _1z1 + height - _Zy1[_H3] * height
}
} else {
for (var _H3 = 0; _H3 < _C9; _H3 += 2) {
this._wb[_H3] = _0z1 + _Zy1[_H3] * width;
this._wb[_H3 + 1] = _1z1 + _Zy1[_H3 + 1] * height
}
}
},
_Eb: function(_f3, _g3, _gb, _7z1) {
var _bz1 = _gb._09._Ox1;
var _az1 = this._az1;
var _Ox1 = this._Ox1;
var _J3 = 0,
_xb = 0,
_W9 = 0,
_Mq = 0,
_C9 = _Ox1.length,
_cz1;
var _dz1, _ez1, _tb, _AQ, _BQ, _Z41;
if (_gb._Tw1.length == 0) {
for (; _xb < _C9; _J3 += 2) {
_dz1 = 0;
_ez1 = 0;
_cz1 = _Ox1[_xb++] + _xb;
for (; _xb < _cz1; _xb++, _W9 += 3) {
_tb = _bz1[_Ox1[_xb]];
_AQ = _az1[_W9];
_BQ = _az1[_W9 + 1];
_Z41 = _az1[_W9 + 2];
_dz1 += (_AQ * _tb._Hw1 + _BQ * _tb._Iw1 + _tb._Jw1) * _Z41;
_ez1 += (_AQ * _tb._Kw1 + _BQ * _tb._Ub + _tb._Lw1) * _Z41
}
_7z1[_J3] = _dz1 + _f3;
_7z1[_J3 + 1] = _ez1 + _g3
}
} else {
var _fz1 = _gb._Tw1;
for (; _xb < _C9; _J3 += 2) {
_dz1 = 0;
_ez1 = 0;
_cz1 = _Ox1[_xb++] + _xb;
for (; _xb < _cz1; _xb++, _W9 += 3, _Mq += 2) {
_tb = _bz1[_Ox1[_xb]];
_AQ = _az1[_W9] + _fz1[_Mq];
_BQ = _az1[_W9 + 1] + _fz1[_Mq + 1];
_Z41 = _az1[_W9 + 2];
_dz1 += (_AQ * _tb._Hw1 + _BQ * _tb._Iw1 + _tb._Jw1) * _Z41;
_ez1 += (_AQ * _tb._Kw1 + _BQ * _tb._Ub + _tb._Lw1) * _Z41
}
_7z1[_J3] = _dz1 + _f3;
_7z1[_J3 + 1] = _ez1 + _g3
}
}
}
};
_x8._gz1 = function(name) {
this.name = name;
this._rb = []
};
_x8._gz1.prototype = {
type: _x8._lb._zy1,
_Eb: function(_f3, _g3, _tb, _7z1) {
_f3 += _tb._Jw1;
_g3 += _tb._Lw1;
var _Hw1 = _tb._Hw1,
_Iw1 = _tb._Iw1,
_Kw1 = _tb._Kw1,
_Ub = _tb._Ub;
var _rb = this._rb;
for (var _H3 = 0,
_C9 = _rb.length; _H3 < _C9; _H3 += 2) {
var _0k = _rb[_H3];
var _1k = _rb[_H3 + 1];
_7z1[_H3] = _0k * _Hw1 + _1k * _Iw1 + _f3;
_7z1[_H3 + 1] = _0k * _Kw1 + _1k * _Ub + _g3
}
}
};
_x8._z8 = function(_oy1) {
this._oy1 = _oy1;
this._hz1 = {}
};
_x8._z8.prototype = {
_iz1: 0,
_jz1: function(_kz1, _lz1, duration) {
var _mz1 = this._oy1._N8(_kz1);
if (!_mz1) throw "Animation not found: " + _kz1;
var _nz1 = this._oy1._N8(_lz1);
if (!_nz1) throw "Animation not found: " + _lz1;
this._oz1(_mz1, _nz1, duration)
},
_oz1: function(_mz1, _nz1, duration) {
this._hz1[_mz1.name + ":" + _nz1.name] = duration
},
_pz1: function(_mz1, _nz1) {
var _5j = this._hz1[_mz1.name + ":" + _nz1.name];
return _5j ? _5j: this._iz1
}
};
_x8._qz1 = function() {};
_x8._qz1.prototype = {
_ni: null,
_rz1: null,
_M8: null,
loop: !1,
_sz1: 0,
_5j: 0,
_7x1: -1,
_tz1: 0,
_uz1: 1,
_vz1: 0,
_wz1: 0,
_9x1: 1,
_xz1: null,
_yz1: null,
onComplete: null,
_zz1: null
};
_x8._A8 = function(_Zi1) {
this.data = _Zi1;
this._Az1 = [];
this._8x1 = []
};
_x8._A8.prototype = {
_xz1: null,
_yz1: null,
onComplete: null,
_zz1: null,
_uz1: 1,
_b9: function(_uy1) {
_uy1 *= this._uz1;
for (var _H3 = 0; _H3 < this._Az1.length; _H3++) {
var current = this._Az1[_H3];
if (!current) continue;
current._5j += _uy1 * current._uz1;
if (current._rz1) {
var _Bz1 = _uy1 * current._rz1._uz1;
current._rz1._5j += _Bz1;
current._vz1 += _Bz1
}
var _ni = current._ni;
if (_ni) {
_ni._5j = current._7x1 - _ni._sz1;
if (_ni._5j >= 0) this._Cz1(_H3, _ni)
} else {
if (!current.loop && current._7x1 >= current._tz1) this._Dz1(_H3)
}
}
},
apply: function(_09) {
for (var _H3 = 0; _H3 < this._Az1.length; _H3++) {
var current = this._Az1[_H3];
if (!current) continue;
this._8x1.length = 0;
var _5j = current._5j;
var _7x1 = current._7x1;
var _tz1 = current._tz1;
var loop = current.loop;
if (!loop && _5j > _tz1) _5j = _tz1;
var _rz1 = current._rz1;
if (!_rz1) {
if (current._9x1 == 1) current._M8.apply(_09, current._7x1, _5j, loop, this._8x1);
else current._M8._9x1(_09, current._7x1, _5j, loop, this._8x1, current._9x1)
} else {
var _Ez1 = _rz1._5j;
if (!_rz1.loop && _Ez1 > _rz1._tz1) _Ez1 = _rz1._tz1;
_rz1._M8.apply(_09, _Ez1, _Ez1, _rz1.loop, null);
var alpha = current._vz1 / current._wz1 * current._9x1;
if (alpha >= 1) {
alpha = 1;
current._rz1 = null
}
current._M8._9x1(_09, current._7x1, _5j, loop, this._8x1, alpha)
}
for (var _Fz1 = 0,
_cz1 = this._8x1.length; _Fz1 < _cz1; _Fz1++) {
var event = this._8x1[_Fz1];
if (current._zz1 != null) current._zz1(_H3, event);
if (this._zz1 != null) this._zz1(_H3, event)
}
if (loop ? (_7x1 % _tz1 > _5j % _tz1) : (_7x1 < _tz1 && _5j >= _tz1)) {
var _Ea = Math.floor(_5j / _tz1);
if (current.onComplete) current.onComplete(_H3, _Ea);
if (this.onComplete) this.onComplete(_H3, _Ea)
}
current._7x1 = current._5j
}
},
_Gz1: function() {
for (var _H3 = 0,
_C9 = this._Az1.length; _H3 < _C9; _H3++) this._Dz1(_H3);
this._Az1.length = 0
},
_Dz1: function(_Hz1) {
if (_Hz1 >= this._Az1.length) return;
var current = this._Az1[_Hz1];
if (!current) return;
if (current._yz1 != null) current._yz1(_Hz1);
if (this._yz1 != null) this._yz1(_Hz1);
this._Az1[_Hz1] = null
},
_Iz1: function(index) {
if (index < this._Az1.length) return this._Az1[index];
while (index >= this._Az1.length) this._Az1.push(null);
return null
},
_Cz1: function(index, _Jz1) {
var current = this._Iz1(index);
if (current) {
var _rz1 = current._rz1;
current._rz1 = null;
if (current._yz1 != null) current._yz1(index);
if (this._yz1 != null) this._yz1(index);
_Jz1._wz1 = this.data._pz1(current._M8, _Jz1._M8);
if (_Jz1._wz1 > 0) {
_Jz1._vz1 = 0;
if (_rz1 && current._vz1 / current._wz1 < 0.5) _Jz1._rz1 = _rz1;
else _Jz1._rz1 = current
}
}
this._Az1[index] = _Jz1;
if (_Jz1._xz1 != null) _Jz1._xz1(index);
if (this._xz1 != null) this._xz1(index)
},
_Kz1: function(_Hz1, _ny1, loop) {
var _M8 = this.data._oy1._N8(_ny1);
if (!_M8) throw "Animation not found: " + _ny1;
return this._O8(_Hz1, _M8, loop)
},
_O8: function(_Hz1, _M8, loop) {
var _Jz1 = new _x8._qz1();
_Jz1._M8 = _M8;
_Jz1.loop = loop;
_Jz1._tz1 = _M8.duration;
this._Cz1(_Hz1, _Jz1);
return _Jz1
},
_Lz1: function(_Hz1, _ny1, loop, _sz1) {
var _M8 = this.data._oy1._N8(_ny1);
if (!_M8) throw "Animation not found: " + _ny1;
return this._Mz1(_Hz1, _M8, loop, _sz1)
},
_Mz1: function(_Hz1, _M8, loop, _sz1) {
var _Jz1 = new _x8._qz1();
_Jz1._M8 = _M8;
_Jz1.loop = loop;
_Jz1._tz1 = _M8.duration;
var _A3 = this._Iz1(_Hz1);
if (_A3) {
while (_A3._ni) _A3 = _A3._ni;
_A3._ni = _Jz1
} else this._Az1[_Hz1] = _Jz1;
if (_sz1 <= 0) {
if (_A3) _sz1 += _A3._tz1 - this.data._pz1(_A3._M8, _M8);
else _sz1 = 0
}
_Jz1._sz1 = _sz1;
return _Jz1
},
_Nz1: function(_Hz1) {
if (_Hz1 >= this._Az1.length) return null;
return this._Az1[_Hz1]
}
};
_x8._Ua = function(_Oz1) {
this._Oz1 = _Oz1
};
_x8._Ua.prototype = {
scale: 1,
_Wa: function(_19) {
var _oy1 = new _x8._by1();
var _Ox1 = _19["bones"];
for (var _H3 = 0,
_C9 = _Ox1.length; _H3 < _C9; _H3++) {
var _Pz1 = _Ox1[_H3];
var parent = null;
if (_Pz1["parent"]) {
parent = _oy1._dy1(_Pz1["parent"]);
if (!parent) throw "Parent bone not found: " + _Pz1["parent"]
}
var _Dw1 = new _x8._zw1(_Pz1["name"], parent);
_Dw1.length = (_Pz1["length"] || 0) * this.scale;
_Dw1._f3 = (_Pz1["x"] || 0) * this.scale;
_Dw1._g3 = (_Pz1["y"] || 0) * this.scale;
_Dw1._i5 = (_Pz1["rotation"] || 0);
_Dw1._E3 = _Pz1.hasOwnProperty("scaleX") ? _Pz1["scaleX"] : 1;
_Dw1._F3 = _Pz1.hasOwnProperty("scaleY") ? _Pz1["scaleY"] : 1;
_Dw1._Aw1 = !_Pz1["inheritScale"] || _Pz1["inheritScale"] == "true";
_Dw1._Bw1 = !_Pz1["inheritRotation"] || _Pz1["inheritRotation"] == "true";
_oy1._Ox1.push(_Dw1)
}
var _fb = _19["slots"];
for (var _H3 = 0,
_C9 = _fb.length; _H3 < _C9; _H3++) {
var _Qz1 = _fb[_H3];
var _Dw1 = _oy1._dy1(_Qz1["bone"]);
if (!_Dw1) throw "Slot bone not found: " + _Qz1["bone"];
var _Rw1 = new _x8._Cw1(_Qz1["name"], _Dw1);
var _bb = _Qz1["color"];
if (_bb) {
_Rw1._T9 = this._Rz1(_bb, 0);
_Rw1._jb = this._Rz1(_bb, 1);
_Rw1._W9 = this._Rz1(_bb, 2);
_Rw1._kb = this._Rz1(_bb, 3)
}
_Rw1._Ew1 = _Qz1["attachment"];
_Rw1._Fw1 = _Qz1["additive"] && _Qz1["additive"] == "true";
_oy1._fb.push(_Rw1);
}
var _cy1 = _19["skins"];
for (var _ky1 in _cy1) {
if (!_cy1.hasOwnProperty(_ky1)) continue;
var _Sz1 = _cy1[_ky1];
var _py1 = new _x8._Zw1(_ky1);
for (var _hy1 in _Sz1) {
if (!_Sz1.hasOwnProperty(_hy1)) continue;
var _1x1 = _oy1._iy1(_hy1);
var _Tz1 = _Sz1[_hy1];
for (var _Ew1 in _Tz1) {
if (!_Tz1.hasOwnProperty(_Ew1)) continue;
var _ib = this._Uz1(_py1, _Ew1, _Tz1[_Ew1]);
if (_ib != null) _py1._0x1(_1x1, _Ew1, _ib)
}
}
_oy1._cy1.push(_py1);
if (_py1.name == "default") _oy1._R8 = _py1
}
var _8x1 = _19["events"];
for (var _my1 in _8x1) {
if (!_8x1.hasOwnProperty(_my1)) continue;
var _Vz1 = _8x1[_my1];
var _qt = new _x8._vy1(_my1);
_qt._wy1 = _Vz1["int"] || 0;
_qt._xy1 = _Vz1["float"] || 0;
_qt._yy1 = _Vz1["string"] || null;
_oy1._8x1.push(_qt)
}
var _B8 = _19["animations"];
for (var _ny1 in _B8) {
if (!_B8.hasOwnProperty(_ny1)) continue;
this._Wz1(_ny1, _B8[_ny1], _oy1)
}
return _oy1
},
_Xz1: function(map) {
if (map["type"] && map["type"].toLowerCase() === "boundingbox") {
return _x8._lb._zy1
} else if (map["type"] && map["type"].toLowerCase() === "mesh") {
return _x8._lb._nb
} else if (map["type"] && map["type"].toLowerCase() === "skinnedmesh") {
return _x8._lb._ob;
}
return _x8._lb._mb
},
_Uz1: function(_py1, name, map) {
name = map["name"] || name;
var type = this._Xz1(map);
var _By1 = map["path"] || name;
var scale = this.scale;
if (type == _x8._lb._mb) {
var _mb = this._Oz1._Yz1(_py1, name, _By1);
if (!_mb) return null;
_mb._By1 = _By1;
_mb._f3 = (map["x"] || 0) * this.scale;
_mb._g3 = (map["y"] || 0) * this.scale;
_mb._E3 = map.hasOwnProperty("scaleX") ? map["scaleX"] : 1;
_mb._F3 = map.hasOwnProperty("scaleY") ? map["scaleY"] : 1;
_mb._i5 = map["rotation"] || 0;
_mb.width = (map["width"] || 0) * scale;
_mb.height = (map["height"] || 0) * scale;
var _bb = map["color"];
if (_bb) {
_mb._T9 = this._Rz1(_bb, 0);
_mb._jb = this._Rz1(_bb, 1);
_mb._W9 = this._Rz1(_bb, 2);
_mb._kb = this._Rz1(_bb, 3)
}
_mb._Jy1();
return _mb
} else if (type == _x8._lb._nb) {
var _nb = this._Oz1._Zz1(_py1, name, _By1);
if (!_nb) return null;
_nb._By1 = _By1;
_nb._rb = this.__z1(map, "vertices", scale);
_nb._Fb = this._0A1(map, "triangles");
_nb._Zy1 = this.__z1(map, "uvs", 1);
_nb._6z1();
_bb = map["color"];
if (_bb) {
_nb._T9 = this._Rz1(_bb, 0);
_nb._jb = this._Rz1(_bb, 1);
_nb._W9 = this._Rz1(_bb, 2);
_nb._kb = this._Rz1(_bb, 3)
}
_nb.__y1 = (map["hull"] || 0) * 2;
if (map["edges"]) _nb._5z1 = this._0A1(map, "edges");
_nb.width = (map["width"] || 0) * scale;
_nb.height = (map["height"] || 0) * scale;
return _nb
} else if (type == _x8._lb._ob) {
var _nb = this._Oz1._1A1(_py1, name, _By1);
if (!_nb) return null;
_nb._By1 = _By1;
var _wb = this.__z1(map, "uvs", 1);
_rb = this.__z1(map, "vertices", 1);
var _az1 = [];
var _Ox1 = [];
for (var _H3 = 0,
_C9 = _rb.length; _H3 < _C9;) {
var _2A1 = _rb[_H3++] | 0;
_Ox1[_Ox1.length] = _2A1;
for (var _cz1 = _H3 + _2A1 * 4; _H3 < _cz1;) {
_Ox1[_Ox1.length] = _rb[_H3];
_az1[_az1.length] = _rb[_H3 + 1] * scale;
_az1[_az1.length] = _rb[_H3 + 2] * scale;
_az1[_az1.length] = _rb[_H3 + 3];
_H3 += 4
}
}
_nb._Ox1 = _Ox1;
_nb._az1 = _az1;
_nb._Fb = this._0A1(map, "triangles");
_nb._Zy1 = _wb;
_nb._6z1();
_bb = map["color"];
if (_bb) {
_nb._T9 = this._Rz1(_bb, 0);
_nb._jb = this._Rz1(_bb, 1);
_nb._W9 = this._Rz1(_bb, 2);
_nb._kb = this._Rz1(_bb, 3)
}
_nb.__y1 = (map["hull"] || 0) * 2;
if (map["edges"]) _nb._5z1 = this._0A1(map, "edges");
_nb.width = (map["width"] || 0) * scale;
_nb.height = (map["height"] || 0) * scale;
return _nb
} else if (type == _x8._lb._zy1) {
var _ib = this._Oz1._3A1(_py1, name);
var _rb = map["vertices"];
for (var _H3 = 0,
_C9 = _rb.length; _H3 < _C9; _H3++) _ib._rb.push(_rb[_H3] * this.scale);
return _ib
}
throw "Unknown attachment type: " + type
},
_Wz1: function(name, map, _oy1) {
var _99 = [];
var duration = 0;
var _fb = map["slots"];
for (var _hy1 in _fb) {
if (!_fb.hasOwnProperty(_hy1)) continue;
var _Qz1 = _fb[_hy1];
var _1x1 = _oy1._iy1(_hy1);
for (var _4A1 in _Qz1) {
if (!_Qz1.hasOwnProperty(_4A1)) continue;
var _bx1 = _Qz1[_4A1];
if (_4A1 == "color") {
var _ot = new _x8._Wx1(_bx1.length);
_ot._1x1 = _1x1;
var _gx1 = 0;
for (var _H3 = 0,
_C9 = _bx1.length; _H3 < _C9; _H3++) {
var _5A1 = _bx1[_H3];
var _bb = _5A1["color"];
var _T9 = this._Rz1(_bb, 0);
var _jb = this._Rz1(_bb, 1);
var _W9 = this._Rz1(_bb, 2);
var _kb = this._Rz1(_bb, 3);
_ot._Mx1(_gx1, _5A1["time"], _T9, _jb, _W9, _kb);
this._6A1(_ot, _gx1, _5A1);
_gx1++
}
_99.push(_ot);
duration = Math.max(duration, _ot.frames[_ot._Lx1() * 5 - 5])
} else if (_4A1 == "attachment") {
var _ot = new _x8._0y1(_bx1.length);
_ot._1x1 = _1x1;
var _gx1 = 0;
for (var _H3 = 0,
_C9 = _bx1.length; _H3 < _C9; _H3++) {
var _5A1 = _bx1[_H3];
_ot._Mx1(_gx1++, _5A1["time"], _5A1["name"])
}
_99.push(_ot);
duration = Math.max(duration, _ot.frames[_ot._Lx1() - 1])
} else throw "Invalid timeline type for a slot: " + _4A1 + " (" + _hy1 + ")";
}
}
var _Ox1 = map["bones"];
for (var _ey1 in _Ox1) {
if (!_Ox1.hasOwnProperty(_ey1)) continue;
var _Kx1 = _oy1._fy1(_ey1);
if (_Kx1 == -1) throw "Bone not found: " + _ey1;
var _Pz1 = _Ox1[_ey1];
for (var _4A1 in _Pz1) {
if (!_Pz1.hasOwnProperty(_4A1)) continue;
var _bx1 = _Pz1[_4A1];
if (_4A1 == "rotate") {
var _ot = new _x8._Jx1(_bx1.length);
_ot._Kx1 = _Kx1;
var _gx1 = 0;
for (var _H3 = 0,
_C9 = _bx1.length; _H3 < _C9; _H3++) {
var _5A1 = _bx1[_H3];
_ot._Mx1(_gx1, _5A1["time"], _5A1["angle"]);
this._6A1(_ot, _gx1, _5A1);
_gx1++
}
_99.push(_ot);
duration = Math.max(duration, _ot.frames[_ot._Lx1() * 2 - 2]);
} else if (_4A1 == "translate" || _4A1 == "scale") {
var _ot;
var _7A1 = 1;
if (_4A1 == "scale") _ot = new _x8._Vx1(_bx1.length);
else {
_ot = new _x8._Sx1(_bx1.length);
_7A1 = this.scale
}
_ot._Kx1 = _Kx1;
var _gx1 = 0;
for (var _H3 = 0,
_C9 = _bx1.length; _H3 < _C9; _H3++) {
var _5A1 = _bx1[_H3];
var _f3 = (_5A1["x"] || 0) * _7A1;
var _g3 = (_5A1["y"] || 0) * _7A1;
_ot._Mx1(_gx1, _5A1["time"], _f3, _g3);
this._6A1(_ot, _gx1, _5A1);
_gx1++
}
_99.push(_ot);
duration = Math.max(duration, _ot.frames[_ot._Lx1() * 3 - 3])
} else throw "Invalid timeline type for a bone: " + _4A1 + " (" + _ey1 + ")"
}
}
var _fz1 = map["ffd"];
for (var _ky1 in _fz1) {
var _py1 = _oy1._jy1(_ky1);
var _Qz1 = _fz1[_ky1];
for (_hy1 in _Qz1) {
var _1x1 = _oy1._iy1(_hy1);
var _8A1 = _Qz1[_hy1];
for (var _9A1 in _8A1) {
var _bx1 = _8A1[_9A1];
var _ot = new _x8._6y1(_bx1.length);
var _ib = _py1._2x1(_1x1, _9A1);
if (!_ib) throw "FFD attachment not found: " + _9A1;
_ot._1x1 = _1x1;
_ot._ib = _ib;
var _aA1 = _ib.type == _x8._lb._nb;
var _LO;
if (_aA1) _LO = _ib._rb.length;
else _LO = _ib._az1.length / 3 * 2;
var _gx1 = 0;
for (var _H3 = 0,
_C9 = _bx1.length; _H3 < _C9; _H3++) {
var _5A1 = _bx1[_H3];
var _rb;
if (!_5A1["vertices"]) {
if (_aA1) _rb = _ib._rb;
else {
_rb = [];
_rb.length = _LO
}
} else {
var _bA1 = _5A1["vertices"];
var _rb = [];
_rb.length = _LO;
var start = _5A1["offset"] || 0;
var _cz1 = _bA1.length;
if (this.scale == 1) {
for (var _Fz1 = 0; _Fz1 < _cz1; _Fz1++) _rb[_Fz1 + start] = _bA1[_Fz1]
} else {
for (var _Fz1 = 0; _Fz1 < _cz1; _Fz1++) _rb[_Fz1 + start] = _bA1[_Fz1] * scale
}
if (_aA1) {
var _cA1 = _ib._rb;
for (var _Fz1 = 0,
_cz1 = _rb.length; _Fz1 < _cz1; _Fz1++) {
if (_rb[_Fz1]) {
_rb[_Fz1] += _cA1[_Fz1]
} else {
_rb[_Fz1] = _cA1[_Fz1]
}
}
}
}
_ot._Mx1(_gx1, _5A1["time"], _rb);
this._6A1(_ot, _gx1, _5A1);
_gx1++
}
_99[_99.length] = _ot;
duration = Math.max(duration, _ot.frames[_ot._Lx1() - 1])
}
}
}
var _dA1 = map["draworder"];
if (_dA1) {
var _ot = new _x8._3y1(_dA1.length);
var _eA1 = _oy1._fb.length;
var _gx1 = 0;
for (var _H3 = 0,
_C9 = _dA1.length; _H3 < _C9; _H3++) {
var _fA1 = _dA1[_H3];
var _hb = null;
if (_fA1["offsets"]) {
_hb = [];
_hb.length = _eA1;
for (var _Fz1 = _eA1 - 1; _Fz1 >= 0; _Fz1--) _hb[_Fz1] = -1;
var _gA1 = _fA1["offsets"];
var _hA1 = [];
_hA1.length = _eA1 - _gA1.length;
var _iA1 = 0,
_jA1 = 0;
for (var _Fz1 = 0,
_cz1 = _gA1.length; _Fz1 < _cz1; _Fz1++) {
var _kA1 = _gA1[_Fz1];
var _1x1 = _oy1._iy1(_kA1["slot"]);
if (_1x1 == -1) throw "Slot not found: " + _kA1["slot"];
while (_iA1 != _1x1) _hA1[_jA1++] = _iA1++;
_hb[_iA1 + _kA1["offset"]] = _iA1++
}
while (_iA1 < _eA1) _hA1[_jA1++] = _iA1++;
for (var _Fz1 = _eA1 - 1; _Fz1 >= 0; _Fz1--) if (_hb[_Fz1] == -1) _hb[_Fz1] = _hA1[--_jA1]
}
_ot._Mx1(_gx1++, _fA1["time"], _hb)
}
_99.push(_ot);
duration = Math.max(duration, _ot.frames[_ot._Lx1() - 1])
}
var _8x1 = map["events"];
if (_8x1) {
var _ot = new _x8._2y1(_8x1.length);
var _gx1 = 0;
for (var _H3 = 0,
_C9 = _8x1.length; _H3 < _C9; _H3++) {
var _Vz1 = _8x1[_H3];
var _qt = _oy1._ly1(_Vz1["name"]);
if (!_qt) throw "Event not found: " + _Vz1["name"];
var event = new _x8._st(_qt);
event._wy1 = _Vz1.hasOwnProperty("int") ? _Vz1["int"] : _qt._wy1;
event._xy1 = _Vz1.hasOwnProperty("float") ? _Vz1["float"] : _qt._xy1;
event._yy1 = _Vz1.hasOwnProperty("string") ? _Vz1["string"] : _qt._yy1;
_ot._Mx1(_gx1++, _Vz1["time"], event)
}
_99.push(_ot);
duration = Math.max(duration, _ot.frames[_ot._Lx1() - 1])
}
_oy1._B8.push(new _x8._6x1(name, _99, duration))
},
_6A1: function(_ot, _gx1, _5A1) {
var _lA1 = _5A1["curve"];
if (!_lA1) return;
if (_lA1 == "stepped") _ot._ex1._hx1(_gx1);
else if (_lA1 instanceof Array) _ot._ex1._ix1(_gx1, _lA1[0], _lA1[1], _lA1[2], _lA1[3])
},
_Rz1: function(_mA1, _nA1) {
if (_mA1.length != 8) throw "Color hexidecimal length must be 8, recieved: " + _mA1;
return parseInt(_mA1.substring(_nA1 * 2, (_nA1 * 2) + 2), 16) / 255
},
__z1: function(map, name, scale) {
var _Yh = map[name];
var _bx1 = [];
_bx1.length = _Yh.length;
var _H3 = 0,
_C9 = _Yh.length;
if (scale == 1) {
for (; _H3 < _C9; _H3++) _bx1[_H3] = _Yh[_H3]
} else {
for (; _H3 < _C9; _H3++) _bx1[_H3] = _Yh[_H3] * scale
}
return _bx1
},
_0A1: function(map, name) {
var _Yh = map[name];
var _bx1 = [];
_bx1.length = _Yh.length;
for (var _H3 = 0,
_C9 = _Yh.length; _H3 < _C9; _H3++) _bx1[_H3] = _Yh[_H3] | 0;
return _bx1
}
};
_x8._Ta = function(_oA1, _pA1) {
this._pA1 = _pA1;
this._qA1 = [];
this._rA1 = [];
var _sA1 = new _x8._tA1(_oA1);
var _uA1 = [];
_uA1.length = 4;
var _zb = null;
while (!0) {
var _vA1 = _sA1._wA1();
if (_vA1 == null) break;
_vA1 = _sA1.trim(_vA1);
if (_vA1.length == 0) _zb = null;
else if (!_zb) {
_zb = new _x8._xA1();
_zb.name = _vA1;
if (_sA1._yA1(_uA1) == 2) {
_zb.width = parseInt(_uA1[0]);
_zb.height = parseInt(_uA1[1]);
_sA1._yA1(_uA1)
}
_zb._zA1 = _x8._Ta._fe[_uA1[0]];
_sA1._yA1(_uA1);
_zb._AA1 = _x8._Ta._BA1[_uA1[0]];
_zb._CA1 = _x8._Ta._BA1[_uA1[1]];
var _sA = _sA1._DA1();
_zb._EA1 = _x8._Ta._FA1._GA1;
_zb._HA1 = _x8._Ta._FA1._GA1;
if (_sA == "x") _zb._EA1 = _x8._Ta._FA1.repeat;
else if (_sA == "y") _zb._HA1 = _x8._Ta._FA1.repeat;
else if (_sA == "xy") _zb._EA1 = _zb._HA1 = _x8._Ta._FA1.repeat;
_pA1.load(_zb, _vA1, this);
this._qA1.push(_zb)
} else {
var _mb = new _x8._IA1();
_mb.name = _vA1;
_mb._zb = _zb;
_mb.rotate = _sA1._DA1() == "true";
_sA1._yA1(_uA1);
var _f3 = parseInt(_uA1[0]);
var _g3 = parseInt(_uA1[1]);
_sA1._yA1(_uA1);
var width = parseInt(_uA1[0]);
var height = parseInt(_uA1[1]);
_mb._vb = _f3 / _zb.width;
_mb._xb = _g3 / _zb.height;
if (_mb.rotate) {
_mb._sU = (_f3 + height) / _zb.width;
_mb._ic = (_g3 + width) / _zb.height
} else {
_mb._sU = (_f3 + width) / _zb.width;
_mb._ic = (_g3 + height) / _zb.height
}
_mb._f3 = _f3;
_mb._g3 = _g3;
_mb.width = Math.abs(width);
_mb.height = Math.abs(height);
if (_sA1._yA1(_uA1) == 4) {
_mb._JA1 = [parseInt(_uA1[0]), parseInt(_uA1[1]), parseInt(_uA1[2]), parseInt(_uA1[3])];
if (_sA1._yA1(_uA1) == 4) {
_mb._KA1 = [parseInt(_uA1[0]), parseInt(_uA1[1]), parseInt(_uA1[2]), parseInt(_uA1[3])];
_sA1._yA1(_uA1)
}
}
_mb._LA1 = parseInt(_uA1[0]);
_mb._MA1 = parseInt(_uA1[1]);
_sA1._yA1(_uA1);
_mb._NA1 = parseInt(_uA1[0]);
_mb._OA1 = parseInt(_uA1[1]);
_mb.index = parseInt(_sA1._DA1());
this._rA1.push(_mb)
}
}
};
_x8._Ta.prototype = {
_PA1: function(name) {
var _rA1 = this._rA1;
for (var _H3 = 0,
_C9 = _rA1.length; _H3 < _C9; _H3++) if (_rA1[_H3].name == name) return _rA1[_H3];
return null
},
_QA1: function() {
var _qA1 = this._qA1;
for (var _H3 = 0,
_C9 = _qA1.length; _H3 < _C9; _H3++) this._pA1._RA1(_qA1[_H3]._Sa)
},
_6z1: function(_zb) {
var _rA1 = this._rA1;
for (var _H3 = 0,
_C9 = _rA1.length; _H3 < _C9; _H3++) {
var _mb = _rA1[_H3];
if (_mb._zb != _zb) continue;
_mb._vb = _mb._f3 / _zb.width;
_mb._xb = _mb._g3 / _zb.height;
if (_mb.rotate) {
_mb._sU = (_mb._f3 + _mb.height) / _zb.width;
_mb._ic = (_mb._g3 + _mb.width) / _zb.height
} else {
_mb._sU = (_mb._f3 + _mb.width) / _zb.width;
_mb._ic = (_mb._g3 + _mb.height) / _zb.height
}
}
}
};
_x8._Ta._fe = {
alpha: 0,
_SA1: 1,
_TA1: 2,
_UA1: 3,
_VA1: 4,
_WA1: 5,
_XA1: 6
};
_x8._Ta._BA1 = {
_YA1: 0,
_Oa1: 1,
_ZA1: 2,
__A1: 3,
_0B1: 4,
_1B1: 5,
_2B1: 6
};
_x8._Ta._FA1 = {
_3B1: 0,
_GA1: 1,
repeat: 2
};
_x8._xA1 = function() {};
_x8._xA1.prototype = {
name: null,
_zA1: null,
_AA1: null,
_CA1: null,
_EA1: null,
_HA1: null,
_Sa: null,
width: 0,
height: 0
};
_x8._IA1 = function() {};
_x8._IA1.prototype = {
_zb: null,
name: null,
_f3: 0,
_g3: 0,
width: 0,
height: 0,
_vb: 0,
_xb: 0,
_sU: 0,
_ic: 0,
_NA1: 0,
_OA1: 0,
_LA1: 0,
_MA1: 0,
index: 0,
rotate: !1,
_JA1: null,
_KA1: null
};
_x8._tA1 = function(text) {
var _1q = text.replace("\r\n", "\n");
_1q = _1q.replace("\r", "\n");
this._4B1 = text.split("\n")
};
_x8._tA1.prototype = {
index: 0,
trim: function(value) {
return value.trim()
},
_wA1: function() {
if (this.index >= this._4B1.length) return null;
return this._4B1[this.index++]
},
_DA1: function() {
var _vA1 = this._wA1();
var _5x1 = _vA1.indexOf(":");
if (_5x1 == -1) throw "Invalid line: " + _vA1;
return this.trim(_vA1.substring(_5x1 + 1))
},
_yA1: function(_uA1) {
var _vA1 = this._wA1();
var _5x1 = _vA1.indexOf(":");
if (_5x1 == -1) throw "Invalid line: " + _vA1;
var _H3 = 0,
_5B1 = _5x1 + 1;
for (; _H3 < 3; _H3++) {
var _6B1 = _vA1.indexOf(",", _5B1);
if (_6B1 == -1) break;
_uA1[_H3] = this.trim(_vA1.substr(_5B1, _6B1 - _5B1));
_5B1 = _6B1 + 1
}
_uA1[_H3] = this.trim(_vA1.substring(_5B1));
return _H3 + 1
}
};
_x8._Va = function(_7B1) {
this._7B1 = _7B1
};
_x8._Va.prototype = {
_Yz1: function(_py1, name, _By1) {
var _mb = this._7B1._PA1(name);
if (!_mb) throw "Region not found in atlas: " + _By1 + " (region attachment: " + name + ")";
var _ib = new _x8._Ay1(name);
_ib._Sa = _mb;
_ib._Iy1(_mb._vb, _mb._xb, _mb._sU, _mb._ic, _mb.rotate);
_ib._Cy1 = _mb._NA1;
_ib._Dy1 = _mb._OA1;
_ib._Ey1 = _mb.width;
_ib._Fy1 = _mb.height;
_ib._Gy1 = _mb._LA1;
_ib._Hy1 = _mb._MA1;
return _ib
},
_Zz1: function(_py1, name, _By1) {
var _mb = this._7B1._PA1(name);
if (!_mb) throw "Region not found in atlas: " + _By1 + " (mesh attachment: " + name + ")";
var _ib = new _x8._Yy1(name);
_ib._Sa = _mb;
_ib._0z1 = _mb._vb;
_ib._1z1 = _mb._xb;
_ib._2z1 = _mb._sU;
_ib._3z1 = _mb._ic;
_ib._4z1 = _mb.rotate;
_ib._Cy1 = _mb._NA1;
_ib._Dy1 = _mb._OA1;
_ib._Ey1 = _mb.width;
_ib._Fy1 = _mb.height;
_ib._Gy1 = _mb._LA1;
_ib._Hy1 = _mb._MA1;
return _ib
},
_1A1: function(_py1, name, _By1) {
var _mb = this._7B1._PA1(name);
if (!_mb) throw "Region not found in atlas: " + _By1 + " (skinned mesh attachment: " + name + ")";
var _ib = new _x8._9z1(name);
_ib._Sa = _mb;
_ib._0z1 = _mb._vb;
_ib._1z1 = _mb._xb;
_ib._2z1 = _mb._sU;
_ib._3z1 = _mb._ic;
_ib._4z1 = _mb.rotate;
_ib._Cy1 = _mb._NA1;
_ib._Dy1 = _mb._OA1;
_ib._Ey1 = _mb.width;
_ib._Fy1 = _mb.height;
_ib._Gy1 = _mb._LA1;
_ib._Hy1 = _mb._MA1;
return _ib
},
_3A1: function(_py1, name) {
return new _x8._gz1(name);
}
};
_x8._E8 = function() {
this._8B1 = [];
this._D9 = [];
this._o9 = []
};
_x8._E8.prototype = {
_p9: 0,
_s9: 0,
_r9: 0,
_t9: 0,
_b9: function(_09, _9B1) {
var _fb = _09._fb;
var _eA1 = _fb.length;
var _f3 = _09._f3,
_g3 = _09._g3;
var _o9 = this._o9;
var _8B1 = this._8B1;
var _D9 = this._D9;
_o9.length = 0;
for (var _H3 = 0,
_C9 = _D9.length; _H3 < _C9; _H3++) _8B1.push(_D9[_H3]);
_D9.length = 0;
for (var _H3 = 0; _H3 < _eA1; _H3++) {
var _gb = _fb[_H3];
var _aB1 = _gb._ib;
if (!_aB1 || _aB1.type != _x8._lb._zy1) continue;
_o9.push(_aB1);
var _bB1 = _8B1.length,
_NR;
if (_bB1 > 0) {
_NR = _8B1[_bB1 - 1];
_8B1.splice(_bB1 - 1, 1)
} else _NR = [];
_D9.push(_NR);
_NR.length = _aB1._rb.length;
_aB1._Eb(_f3, _g3, _gb._tb, _NR)
}
if (_9B1) this._cB1()
},
_cB1: function() {
var _D9 = this._D9;
var _p9 = Number.MAX_VALUE,
_s9 = Number.MAX_VALUE,
_r9 = Number.MIN_VALUE,
_t9 = Number.MIN_VALUE;
for (var _H3 = 0,
_C9 = _D9.length; _H3 < _C9; _H3++) {
var _rb = _D9[_H3];
for (var _Fz1 = 0,
_cz1 = _rb.length; _Fz1 < _cz1; _Fz1 += 2) {
var _f3 = _rb[_Fz1];
var _g3 = _rb[_Fz1 + 1];
_p9 = Math.min(_p9, _f3);
_s9 = Math.min(_s9, _g3);
_r9 = Math.max(_r9, _f3);
_t9 = Math.max(_t9, _g3)
}
}
this._p9 = _p9;
this._s9 = _s9;
this._r9 = _r9;
this._t9 = _t9
},
_dB1: function(_f3, _g3) {
return _f3 >= this._p9 && _f3 <= this._r9 && _g3 >= this._s9 && _g3 <= this._t9;
},
_eB1: function(_G9, _H9, _I9, _J9) {
var _p9 = this._p9,
_s9 = this._s9,
_r9 = this._r9,
_t9 = this._t9;
if ((_G9 <= _p9 && _I9 <= _p9) || (_H9 <= _s9 && _J9 <= _s9) || (_G9 >= _r9 && _I9 >= _r9) || (_H9 >= _t9 && _J9 >= _t9)) return ! 1;
var _F9 = (_J9 - _H9) / (_I9 - _G9);
var _g3 = _F9 * (_p9 - _G9) + _H9;
if (_g3 > _s9 && _g3 < _t9) return ! 0;
_g3 = _F9 * (_r9 - _G9) + _H9;
if (_g3 > _s9 && _g3 < _t9) return ! 0;
var _f3 = (_s9 - _H9) / _F9 + _G9;
if (_f3 > _p9 && _f3 < _r9) return ! 0;
_f3 = (_t9 - _H9) / _F9 + _G9;
if (_f3 > _p9 && _f3 < _r9) return ! 0;
return ! 1
},
_fB1: function(_gB1) {
return this._p9 < _gB1._r9 && this._r9 > _gB1._p9 && this._s9 < _gB1._t9 && this._t9 > _gB1._s9;
},
_8a: function(_f3, _g3) {
var _D9 = this._D9;
for (var _H3 = 0,
_C9 = _D9.length; _H3 < _C9; _H3++) if (this._hB1(_D9[_H3], _f3, _g3)) return this._o9[_H3];
return null
},
_L9: function(_G9, _H9, _I9, _J9) {
var _D9 = this._D9;
for (var _H3 = 0,
_C9 = _D9.length; _H3 < _C9; _H3++) if (this._iB1(_D9[_H3], _G9, _H9, _I9, _J9)) return this._o9[_H3];
return null
},
_hB1: function(_NR, _f3, _g3) {
var _cz1 = _NR.length;
var _jB1 = _cz1 - 2;
var _kB1 = !1;
for (var _Fz1 = 0; _Fz1 < _cz1; _Fz1 += 2) {
var _lB1 = _NR[_Fz1 + 1];
var _mB1 = _NR[_jB1 + 1];
if ((_lB1 < _g3 && _mB1 >= _g3) || (_mB1 < _g3 && _lB1 >= _g3)) {
var _nB1 = _NR[_Fz1];
if (_nB1 + (_g3 - _lB1) / (_mB1 - _lB1) * (_NR[_jB1] - _nB1) < _f3) _kB1 = !_kB1;
}
_jB1 = _Fz1
}
return _kB1
},
_iB1: function(_NR, _G9, _H9, _I9, _J9) {
var _cz1 = _NR.length;
var _oB1 = _G9 - _I9,
_pB1 = _H9 - _J9;
var _qB1 = _G9 * _J9 - _H9 * _I9;
var _2k = _NR[_cz1 - 2],
_3k = _NR[_cz1 - 1];
for (var _Fz1 = 0; _Fz1 < _cz1; _Fz1 += 2) {
var _rB1 = _NR[_Fz1],
_sB1 = _NR[_Fz1 + 1];
var _tB1 = _2k * _sB1 - _3k * _rB1;
var _uB1 = _2k - _rB1,
_vB1 = _3k - _sB1;
var _wB1 = _oB1 * _vB1 - _pB1 * _uB1;
var _f3 = (_qB1 * _uB1 - _oB1 * _tB1) / _wB1;
if (((_f3 >= _2k && _f3 <= _rB1) || (_f3 >= _rB1 && _f3 <= _2k)) && ((_f3 >= _G9 && _f3 <= _I9) || (_f3 >= _I9 && _f3 <= _G9))) {
var _g3 = (_qB1 * _vB1 - _pB1 * _tB1) / _wB1;
if (((_g3 >= _3k && _g3 <= _sB1) || (_g3 >= _sB1 && _g3 <= _3k)) && ((_g3 >= _H9 && _g3 <= _J9) || (_g3 >= _J9 && _g3 <= _H9))) return ! 0;
}
_2k = _rB1;
_3k = _sB1
}
return ! 1
},
_xB1: function(_ib) {
var index = this._o9.indexOf(_ib);
return index == -1 ? null: this._D9[index]
},
_yB1: function() {
return this._r9 - this._p9
},
_zB1: function() {
return this._t9 - this._s9
}
};
var _AB1 = 0,
_BB1 = 1,
_CB1 = 2,
_DB1 = 3,
_EB1 = 4,
_FB1 = 5,
_GB1 = 6,
_HB1 = 7,
_IB1 = 8,
_JB1 = 9;
var _KB1 = 0,
_LB1 = 1,
_MB1 = 2,
_NB1 = 3;
function _OB1(_ce, _Ch) {
this.type = _ce;
this.id = _Ch;
this._ho1 = null
};
_OB1.prototype._PB1 = function(_Zn1, _QB1, _RB1, _SB1, _TB1) {
var _UB1 = _QB1.getInt32(_RB1, _SB1);
_RB1 += 4;
var width = _QB1.getInt32(_RB1, _SB1);
_RB1 += 4;
var height = _QB1.getInt32(_RB1, _SB1);
_RB1 += 4;
var _VB1 = _QB1.getInt32(_RB1, _SB1);
_RB1 += 4;
var _WB1 = _QB1.getInt32(_RB1, _SB1);
_RB1 += 4;
var _XB1 = _QB1.getInt32(_RB1, _SB1);
_RB1 += 4;
var _YB1 = _RB1;
var _ZB1 = new Uint8Array(_Zn1);
var __B1 = (_VB1 > 0) ? new Uint8Array(_Zn1, _RB1, _VB1) : null;
_RB1 += _VB1;
var _0C1 = (_WB1 > 0) ? new Uint8Array(_Zn1, _RB1, _WB1) : null;
_RB1 += _WB1;
var _1C1 = (_XB1 > 0) ? new Uint8Array(_Zn1, _RB1, _XB1) : null;
_RB1 += _XB1;
this._2C1(_UB1, width, height, __B1, _0C1, _1C1, _TB1);
_RB1 = _YB1 + (((_VB1 + _WB1 + _XB1) + 3) & ~3);
return _RB1;
};
_OB1.prototype._3C1 = function(_Hz, _Kz) {
var _W9 = new ArrayBuffer(4);
var _kb = new Uint32Array(_W9);
var _I3 = new Uint8Array(_W9);
_kb[0] = 0xdeadbeef;
if (_I3[0] == 0xef) {
return (((_Hz & 0xff) << 8) | (_Kz & 0xff))
}
if (_I3[0] == 0xde) {
return (((_Kz & 0xff) << 8) | (_Hz & 0xff))
}
};
_OB1.prototype._4C1 = function(_5C1) {
try {
do {
if (_5C1[1] == 0xd9) {
_5C1 = _5C1.subarray(2)
} else if (_5C1[1] == 0xd8) {
if ((_5C1[6] === 0x4a) && (_5C1[7] === 0x46) && (_5C1[8] === 0x49) && (_5C1[9] === 0x46)) {
var _J3 = this._3C1(_5C1[14], _5C1[15]);
var _K3 = this._3C1(_5C1[16], _5C1[17]);
var _6C1 = {
width: _J3,
height: _K3,
body: _5C1
};
return _6C1
}
_5C1 = _5C1.subarray(4 + this._3C1(_5C1[4], _5C1[5]))
} else {
_5C1 = _5C1.subarray(2 + this._3C1(_5C1[2], _5C1[3]))
}
} while (( _5C1 . byteLength >= 0 ) && (_5C1[0] == 0xff))
} catch(e) {
debug(e.message)
}
var _6C1 = {
width: _J3,
height: _K3,
body: _5C1
};
return _6C1
};
_OB1.prototype._2C1 = function(_ce, _Aa, _Ba, _5C1, _7C1, _8C1, _9C1) {
switch (_ce) {
case _EB1:
{
this._ho1 = this._aC1(_Aa, _Ba, _5C1, "gif")
}
break;
case _DB1:
{
this._ho1 = this._aC1(_Aa, _Ba, _5C1, "png")
}
break;
case _BB1:
case _AB1:
{
this._ho1 = this._aC1(_Aa, _Ba, _5C1, "jpeg");
}
break;
case _CB1:
{
var _6C1 = this._4C1(_5C1);
this._ho1 = this._aC1(_6C1.width, _6C1.height, _6C1.body, "jpeg",
function(_lG) {
var _bC1 = String.fromCharCode.apply(null, new Uint16Array(_7C1));
var _bC1 = _bC1.split('').map(function(e) {
return e.charCodeAt(0)
});
var _cC1 = window["Zlib"];
var _dC1 = new _cC1["Inflate"](_bC1);
var _eC1 = _dC1["decompress"]();
this._ho1 = _ek1(_lG, _eC1)
})
}
break;
case _FB1:
case _IB1:
{
this._ho1 = null
}
break;
case _GB1:
case _HB1:
case _JB1:
{
var _ho1 = new Image();
var _Kd = _sa._ak1(_ho1, _5C1, _Aa, _Ba);
_ho1.__b = _Kd;
_ho1._Od = _Aa;
_ho1._Pd = _Ba;
this._ho1 = _ho1
}
break;
default:
break
}
};
_OB1.prototype._aC1 = function(_Aa, _Ba, _5C1, _fC1, _cz, _gC1) {
var _hC1 = new Uint16Array(_5C1);
var _iC1 = "";
for (var _H3 = 0,
_R9 = _hC1.length; _H3 < _R9; _H3++) {
_iC1 += String.fromCharCode(_hC1[_H3])
}
var _jC1 = window._kC1(_iC1);
var _lC1 = "data:image/" + _fC1 + ";base64," + _jC1;
var img = new Image();
img.onload = function() {
var _Kj = {
_Ga: img
};
_0c(_Kj);
if (_cz) {
_cz(_Kj)
}
};
img.onerror = function(e) {
debug(e);
if (_gC1) {
_gC1(e)
}
};
img.src = _lC1;
return img
};
function _ek1(_lG, _Gd) {
var _Kd = _sa._ek1(_lG._Ga.__b, _Gd);
_lG._Ga.__b = _Kd;
_lG._Ga._Od = _Kd._gk1;
_lG._Ga._Pd = _Kd._hk1;
return _lG._Ga
}
var _mC1 = 0,
_nC1 = 1,
_oC1 = 2;
var _pC1 = 0,
_qC1 = 1,
_rC1 = 2,
_sC1 = 3;
var _tC1 = 0,
_uC1 = 1;
var _vC1 = {
_LM: 0,
_MM: 0,
version: 1
};
function _wC1(_ce, _Ch) {
this.type = _ce;
this.id = _Ch
};
_wC1.prototype._xC1 = function(_QB1, _RB1, _SB1, _yC1) {
this._p9 = _QB1.getFloat32(_RB1, _SB1);
_RB1 += 4;
this._r9 = _QB1.getFloat32(_RB1, _SB1);
_RB1 += 4;
this._s9 = _QB1.getFloat32(_RB1, _SB1);
_RB1 += 4;
this._t9 = _QB1.getFloat32(_RB1, _SB1);
_RB1 += 4;
var _zC1 = _QB1.getInt32(_RB1, _SB1);
_RB1 += 4;
this._AC1 = [];
for (var _H3 = 0; _H3 < _zC1; _H3++) {
var _BC1 = _QB1.getInt32(_RB1, _SB1);
_RB1 += 4;
var _CC1 = _QB1.getInt32(_RB1, _SB1);
_RB1 += 4;
var _DC1 = _QB1.getInt32(_RB1, _SB1);
_RB1 += 4;
var _EC1 = {
_BC1: _BC1,
_CC1: _CC1,
_DC1: _DC1
};
_EC1._FC1 = (_BC1 > 0) ? [] : null;
_EC1._GC1 = (_CC1 > 0) ? [] : null;
_EC1._HC1 = (_DC1 > 0) ? [] : null;
_RB1 = this._IC1(_EC1, _QB1, _RB1, _SB1, _yC1);
_RB1 = this._JC1(_EC1, _QB1, _RB1, _SB1);
_RB1 = this._KC1(_EC1, _QB1, _RB1, _SB1);
this._AC1.push(_EC1)
}
return _RB1
};
_wC1.prototype._IC1 = function(_LC1, _QB1, _RB1, _SB1, _yC1) {
_LC1._FC1 = [];
for (var _H3 = 0; _H3 < _LC1._BC1; _H3++) {
var _MC1 = _QB1.getInt32(_RB1, _SB1);
_RB1 += 4;
var _NC1 = null;
switch (_MC1) {
case _qC1:
{
_NC1 = {
type: _qC1
};
var _xk = _QB1.getUint8(_RB1, _SB1);
_RB1++;
var _yk = _QB1.getUint8(_RB1, _SB1);
_RB1++;
var _zk = _QB1.getUint8(_RB1, _SB1);
_RB1++;
var alpha = _QB1.getUint8(_RB1, _SB1);
_RB1++;
_NC1._1b = (_xk | (_yk << 8) | (_zk << 16) | (alpha << 24))
}
break;
case _rC1:
{
_NC1 = {
type: _rC1
};
_NC1._OC1 = _QB1.getInt32(_RB1, _SB1);
_RB1 += 4;
var _PC1 = [];
for (var _F9 = 0; _F9 < 9; _F9++) {
_PC1[_F9] = _QB1.getFloat32(_RB1, _SB1);
_RB1 += 4
}
_NC1._PC1 = new _Gn();
_NC1._PC1._F9[_Yo] = _PC1[0];
_NC1._PC1._F9[_Zo] = _PC1[1];
_NC1._PC1._F9[_0p] = _PC1[2];
_NC1._PC1._F9[_1p] = _PC1[3];
_NC1._PC1._F9[_Rn] = _PC1[4];
_NC1._PC1._F9[_3p] = _PC1[5];
_NC1._QC1 = _QB1.getInt32(_RB1, _SB1);
_RB1 += 4;
_NC1._RC1 = [];
for (var _F9 = 0; _F9 < _NC1._QC1; _F9++) {
var _Ca1 = _QB1.getInt32(_RB1, _SB1);
_RB1 += 4;
var _xk = _QB1.getUint8(_RB1, _SB1);
_RB1++;
var _yk = _QB1.getUint8(_RB1, _SB1);
_RB1++;
var _zk = _QB1.getUint8(_RB1, _SB1);
_RB1++;
var alpha = _QB1.getUint8(_RB1, _SB1);
_RB1++;
_NC1._RC1.push({
_Ca1: _Ca1,
_1b: (_xk | (_yk << 8) | (_zk << 16) | (alpha << 24))
})
}
_NC1._Ld = null;
this._SC1(_NC1)
}
break;
case _sC1:
{
_NC1 = {
type: _sC1
};
_NC1._TC1 = _QB1.getInt32(_RB1, _SB1);
_RB1 += 4;
_NC1._UC1 = _QB1.getInt32(_RB1, _SB1);
_RB1 += 4;
_NC1._VC1 = -1;
for (var index = 0; index < _yC1.length; index++) {
if (_yC1[index].id === _NC1._UC1) {
_NC1._VC1 = index;
break
}
}
var _PC1 = [];
for (var _F9 = 0; _F9 < 9; _F9++) {
_PC1[_F9] = _QB1.getFloat32(_RB1, _SB1);
_RB1 += 4
}
_NC1._PC1 = new _Gn();
_NC1._PC1._F9[_Yo] = _PC1[0];
_NC1._PC1._F9[_Zo] = _PC1[1];
_NC1._PC1._F9[_0p] = _PC1[2];
_NC1._PC1._F9[_1p] = _PC1[3];
_NC1._PC1._F9[_Rn] = _PC1[4];
_NC1._PC1._F9[_3p] = _PC1[5];
}
break
}
_LC1._FC1.push(_NC1)
}
return _RB1
};
_wC1.prototype._SC1 = function(_WC1) {
if ((_WC1 === null) || (_WC1 === undefined)) {
return
}
var _XC1 = 256,
_YC1 = 1,
_ZC1 = 64,
__C1 = 64;
var _0D1 = [];
var width, height;
switch (_WC1._OC1) {
default:
return;
case _tC1:
{
width = _XC1;
height = _YC1;
for (var _H3 = 0; _H3 < _XC1; _H3++) {
_0D1[_H3] = this._1D1(_WC1, _H3)
}
}
break;
case _uC1:
{
width = _ZC1;
height = __C1;
var _2D1 = (_ZC1 - 1) / 2;
var _3D1 = (__C1 - 1) / 2;
var _PO = _U9(_2D1, _3D1);
for (var __9 = 0; __9 < __C1; __9++) {
for (var _H3 = 0; _H3 < _ZC1; _H3++) {
var _0r1 = _H3 - _2D1;
var _Zq1 = __9 - _3D1;
var _kA = Math.sqrt(_0r1 * _0r1 + _Zq1 * _Zq1);
_kA /= _PO;
var _Ca1 = 255 * _kA;
_0D1[(__9 * _ZC1) + _H3] = this._1D1(_WC1, _Ca1)
}
}
}
break
}
_WC1._Ld = _4D1(width, height, _0D1)
};
function _4D1(_vh, _wh, _bk1) {
var _QF = document.createElement(_cq);
var _RF = _QF.getContext('2d');
_SF(_RF);
var _Kd = _sa._ck1(_QF, _bk1, _vh, _wh);
var _Kj = new _Lj();
_Kj._f3 = 0;
_Kj._g3 = 0;
_Kj._J3 = _Kd._gk1;
_Kj._K3 = _Kd._hk1;
_Kj._s5 = 0;
_Kj._t5 = 0;
_Kj._u5 = _Kj._J3;
_Kj._v5 = _Kj._K3;
_Kj._w5 = _vh;
_Kj._x5 = _wh;
_Kj._y5 = _WF(_QF);
_Kj._Ga = _Ha[_Kj._y5];
_Kj._Ga.__b = _Kd;
_Kj._Ga._Od = _QF.width;
_Kj._Ga._Pd = _QF.height;
return _Kj;
}
_wC1.prototype._1D1 = function(_WC1, _5D1) {
if (_WC1._QC1 <= 0) {
return 0
}
_5D1 = (_5D1 < 0) ? 0 : (_5D1 > 255) ? 255 : _5D1;
if (_5D1 < _WC1._RC1[0]._Ca1) {
return _WC1._RC1[0]._1b
}
for (var _H3 = 1; _H3 < _WC1._QC1; _H3++) {
var _6D1 = _WC1._RC1[_H3];
if (_6D1._Ca1 >= _5D1) {
var _7D1 = _WC1._RC1[_H3 - 1];
var _8D1 = 0;
if (_6D1._Ca1 != _7D1._Ca1) {
_8D1 = ((_5D1 - _7D1._Ca1) << 8) / (_6D1._Ca1 - _7D1._Ca1)
}
var _9D1 = 256 - _8D1;
var _1b = _6D1._1b;
var _aD1 = _7D1._1b;
var _bD1 = [];
_bD1[0] = ((_1b & 0xff) * _8D1) >> 8;
_bD1[1] = (((_1b >> 8) & 0xff) * _8D1) >> 8;
_bD1[2] = (((_1b >> 16) & 0xff) * _8D1) >> 8;
_bD1[3] = (((_1b >> 24) & 0xff) * _8D1) >> 8;
_bD1[0] += ((_aD1 & 0xff) * _9D1) >> 8;
_bD1[1] += (((_aD1 >> 8) & 0xff) * _9D1) >> 8;
_bD1[2] += (((_aD1 >> 16) & 0xff) * _9D1) >> 8;
_bD1[3] += (((_aD1 >> 24) & 0xff) * _9D1) >> 8;
var _cD1 = _bD1[0] | (_bD1[1] << 8) | (_bD1[2] << 16) | (_bD1[3] << 24);
return _cD1
}
}
return _WC1._RC1[_WC1._QC1 - 1]._1b
};
_wC1.prototype._JC1 = function(_LC1, _QB1, _RB1, _SB1) {
_LC1._GC1 = [];
for (var _H3 = 0; _H3 < _LC1._CC1; _H3++) {
var _xk = _QB1.getUint8(_RB1, _SB1);
_RB1++;
var _yk = _QB1.getUint8(_RB1, _SB1);
_RB1++;
var _zk = _QB1.getUint8(_RB1, _SB1);
_RB1++;
var alpha = _QB1.getUint8(_RB1, _SB1);
_RB1++;
_LC1._GC1.push({
_1b: (_xk | (_yk << 8) | (_zk << 16) | (alpha << 24))
})
}
return _RB1
};
_wC1.prototype._KC1 = function(_LC1, _QB1, _RB1, _SB1) {
var _H3, _F9;
_LC1._HC1 = [];
for (_H3 = 0; _H3 < _LC1._DC1; _H3++) {
var _dD1 = {};
_LC1._HC1.push(_dD1);
_dD1._eD1 = _QB1.getInt32(_RB1, _SB1);
_RB1 += 4;
_dD1._fD1 = _QB1.getInt32(_RB1, _SB1);
_RB1 += 4;
_dD1._gD1 = _QB1.getInt32(_RB1, _SB1);
_RB1 += 4;
_dD1._hD1 = _QB1.getInt32(_RB1, _SB1);
_RB1 += 4;
_dD1._iD1 = _QB1.getInt32(_RB1, _SB1);
_RB1 += 4;
_dD1._jD1 = _QB1.getInt32(_RB1, _SB1);
_RB1 += 4;
_dD1._kD1 = _QB1.getInt32(_RB1, _SB1);
_RB1 += 4;
_dD1._lD1 = _QB1.getInt32(_RB1, _SB1);
_RB1 += 4;
if (_vC1.version >= 2) {
_dD1._mD1 = _QB1.getInt32(_RB1, _SB1);
_RB1 += 4;
_dD1._nD1 = _QB1.getInt32(_RB1, _SB1);
_RB1 += 4
}
if (_vC1.version >= 3) {
_dD1._oD1 = _QB1.getInt32(_RB1, _SB1);
_RB1 += 4;
_dD1._pD1 = _QB1.getInt32(_RB1, _SB1);
_RB1 += 4
}
_dD1._qD1 = (_dD1._hD1 > 0) ? [] : null;
_dD1._rD1 = (_dD1._iD1 > 0) ? [] : null;
_dD1._sD1 = (_dD1._jD1 > 0) ? [] : null;
_dD1._tD1 = (_dD1._kD1 > 0) ? [] : null;
_dD1._uD1 = (_dD1._lD1 > 0) ? [] : null;
_dD1._vD1 = (_dD1._mD1) ? [] : null;
_dD1._wD1 = (_dD1._nD1) ? [] : null;
_dD1._xD1 = (_dD1._oD1) ? [] : null;
_dD1._yD1 = (_dD1._pD1) ? [] : null;
for (_F9 = 0; _F9 < _dD1._hD1 * 2; _F9++) {
_dD1._qD1[_F9] = _QB1.getFloat32(_RB1, _SB1);
_RB1 += 4
}
for (_F9 = 0; _F9 < _dD1._iD1 * 2; _F9++) {
_dD1._zD1[_F9] = _QB1.getInt32(_RB1, _SB1);
_RB1 += 4
}
for (_F9 = 0; _F9 < _dD1._jD1 * 3; _F9++) {
_dD1._sD1[_F9] = _QB1.getUint32(_RB1, _SB1);
_RB1 += 4
}
for (_F9 = 0; _F9 < _dD1._kD1 * 2; _F9++) {
_dD1._tD1[_F9] = _QB1.getFloat32(_RB1, _SB1);
_RB1 += 4
}
for (_F9 = 0; _F9 < _dD1._lD1 * 3; _F9++) {
_dD1._uD1[_F9] = _QB1.getUint32(_RB1, _SB1);
_RB1 += 4
}
if (_vC1.version >= 2) {
for (_F9 = 0; _F9 < _dD1._mD1 * 2; _F9++) {
_dD1._vD1[_F9] = _QB1.getInt32(_RB1, _SB1);
_RB1 += 4
}
for (_F9 = 0; _F9 < _dD1._nD1 * 2; _F9++) {
_dD1._wD1[_F9] = _QB1.getFloat32(_RB1, _SB1);
_RB1 += 4
}
}
if (_vC1.version >= 3) {
for (_F9 = 0; _F9 < _dD1._oD1 * 2; _F9++) {
_dD1._xD1[_F9] = _QB1.getInt32(_RB1, _SB1);
_RB1 += 4
}
for (_F9 = 0; _F9 < _dD1._pD1 * 2; _F9++) {
_dD1._yD1[_F9] = _QB1.getFloat32(_RB1, _SB1);
_RB1 += 4
}
}
}
return _RB1
};
var _AD1 = 1.0 / 20.0;
function _BD1() {
this._CD1 = 0;
this._DD1 = 0;
this._p9 = 0;
this._r9 = 0;
this._s9 = 0;
this._t9 = 0;
this._ED1 = null
};
_BD1.prototype._FD1 = function(_QB1, _RB1, _SB1) {
this._CD1 = _QB1.getInt32(_RB1, _SB1);
_RB1 += 4;
this._DD1 = _QB1.getInt32(_RB1, _SB1);
_RB1 += 4;
this._p9 = _QB1.getFloat32(_RB1, _SB1) * _AD1;
_RB1 += 4;
this._r9 = _QB1.getFloat32(_RB1, _SB1) * _AD1;
_RB1 += 4;
this._s9 = _QB1.getFloat32(_RB1, _SB1) * _AD1;
_RB1 += 4;
this._t9 = _QB1.getFloat32(_RB1, _SB1) * _AD1;
_RB1 += 4;
var _GD1, _HD1, _ID1;
_GD1 = _QB1.getInt32(_RB1, _SB1);
_RB1 += 4;
_HD1 = _QB1.getInt32(_RB1, _SB1);
_RB1 += 4;
_ID1 = _QB1.getInt32(_RB1, _SB1);
_RB1 += 4;
this._ED1 = {
_GD1: _GD1,
_HD1: _HD1,
_ID1: _ID1
};
this._JD1 = [];
for (var _H3 = 0; _H3 < this._DD1; _H3++) {
var _KD1 = {};
this._JD1.push(_KD1);
_KD1._LD1 = _QB1.getInt32(_RB1, _SB1);
_RB1 += 4;
_KD1._p9 = _QB1.getFloat32(_RB1, _SB1) * _AD1;
_RB1 += 4;
_KD1._r9 = _QB1.getFloat32(_RB1, _SB1) * _AD1;
_RB1 += 4;
_KD1._s9 = _QB1.getFloat32(_RB1, _SB1) * _AD1;
_RB1 += 4;
_KD1._t9 = _QB1.getFloat32(_RB1, _SB1) * _AD1;
_RB1 += 4;
_KD1._MD1 = [];
for (var __9 = 0; __9 < _KD1._LD1; __9++) {
var _Oy = {};
_KD1._MD1.push(_Oy);
_Oy.__y = _QB1.getInt32(_RB1, _SB1);
_RB1 += 4;
_Oy.index = _QB1.getInt32(_RB1, _SB1);
_RB1 += 4;
_Oy._R3 = _QB1.getInt32(_RB1, _SB1);
_RB1 += 4;
_Oy._ND1 = _QB1.getInt32(_RB1, _SB1);
_RB1 += 4;
var _OD1 = [];
for (var _eT = 0; _eT < 4; _eT++) {
_OD1[_eT] = _QB1.getInt32(_RB1, _SB1);
_RB1 += 4
}
var _PD1 = [];
for (var _eT = 0; _eT < 4; _eT++) {
_PD1[_eT] = _QB1.getInt32(_RB1, _SB1);
_RB1 += 4
}
_Oy._QD1 = [];
_Oy._RD1 = [];
_Oy._SD1 = [];
_Oy._QD1[0] = _OD1[2];
_Oy._RD1[0] = _PD1[2];
_Oy._SD1[0] = 0;
_Oy._QD1[1] = _OD1[1];
_Oy._RD1[1] = _PD1[1];
_Oy._SD1[1] = _PD1[1];
_Oy._QD1[2] = _OD1[0];
_Oy._RD1[2] = _PD1[0];
_Oy._SD1[2] = _PD1[0];
_Oy._QD1[3] = _OD1[3];
_Oy._RD1[3] = _PD1[3];
_Oy._SD1[3] = _PD1[3];
_Oy._p9 = _QB1.getFloat32(_RB1, _SB1) * _AD1;
_RB1 += 4;
_Oy._r9 = _QB1.getFloat32(_RB1, _SB1) * _AD1;
_RB1 += 4;
_Oy._s9 = _QB1.getFloat32(_RB1, _SB1) * _AD1;
_RB1 += 4;
_Oy._t9 = _QB1.getFloat32(_RB1, _SB1) * _AD1;
_RB1 += 4;
var _PC1 = [];
for (var _eT = 0; _eT < 9; _eT++) {
_PC1[_eT] = _QB1.getFloat32(_RB1, _SB1);
_RB1 += 4
}
_Oy._PC1 = new _Gn();
_Oy._PC1._F9[_Yo] = _PC1[0];
_Oy._PC1._F9[_Zo] = _PC1[1];
_Oy._PC1._F9[_0p] = _PC1[2];
_Oy._PC1._F9[_1p] = _PC1[3];
_Oy._PC1._F9[_Rn] = _PC1[4];
_Oy._PC1._F9[_3p] = _PC1[5]
}
}
return _RB1
};
var _TD1 = -1;
var _bh = null;
var _UD1 = 0;
var _VD1 = 0;
var _WD1 = {
_f3: 0,
_g3: 0,
_Cc: 0
};
var _XD1 = "en";
function _YD1(canvas) {
debug = _ZD1;
_PD = __D1;
_zt = _0E1;
tizen.systeminfo.getPropertyValue("LOCALE", _1E1, null);
_dK = _2E1;
_fK = _3E1;
_hK = _4E1;
debug('------- Tizen_Init -------------');
debug('href=' + window.location._5E1);
debug('canvas size:' + canvas.width + ',' + canvas.height);
debug('window size:' + window.innerWidth + ',' + window.innerHeight);
debug('clientWidth:' + document.documentElement.clientWidth);
debug('clientHeight:' + document.documentElement.clientHeight);
debug('displayName:' + _Yp._A5._Y5);
_BL = canvas.width;
_CL = canvas.height;
var _6E1 = document.documentElement.clientWidth;
var _7E1 = document.documentElement.clientHeight;
_7E1 -= _VD1;
if (0) {
var _8E1 = _7E1 / _6E1;
var _9E1 = canvas.height / canvas.width;
if (_8E1 > _9E1) {
canvas.width = _6E1;
canvas.height = _6E1 * _9E1;
_T6(0, (_7E1 - canvas.height) * 0.5)
} else {
canvas.height = _7E1;
canvas.width = _7E1 / _9E1;
_T6((_6E1 - canvas.width) * 0.5, 0)
}
} else {
_T6(0, 0);
canvas.width = _6E1;
canvas.height = _7E1;
debug("set window rect " + _6E1 + "," + _7E1)
}
_Iu = _aE1;
_vJ = _bE1;
_cE1();
debug("PushEnable=" + _Yp._A5._dE1);
if (_Yp._A5._dE1) {
_eE1()
} {
_bh = _fE1
}
document.addEventListener("webkitvisibilitychange", _gE1, !1);
if (window["DeviceMotionEvent"]) {
debug("DeviceMotionEvent is supported");
window.addEventListener('devicemotion', _hE1, !1)
} else debug("DeviceMotionEvent NOT supported");
window.addEventListener('tizenhwkey', _iE1, !1);
window._jE1 = _kE1
}
function _0E1() {
return _XD1
}
function _1E1(_lE1) {
var _mE1 = _lE1["language"];
var _nE1 = _mE1.slice(0, 2);
_XD1 = _nE1
}
function __D1() {
debug("game_end");
tizen.application.getCurrentApplication().exit()
}
function _iE1(_fr) {
var _oE1 = 0;
if (_fr['keyName'] == 'back') {
_oE1 = 8
} else if (_fr['keyName'] == 'menu') {
_oE1 = 77
}
if (_oE1 != 0) {
_0z(_oE1);
_4z(_oE1)
}
}
function _kE1() {
console.log("tizenUnload");
_lF()
}
function _pE1() {
var _6E1 = document.documentElement.clientWidth;
var _7E1 = document.documentElement.clientHeight;
debug('Tizen_ResizeCanvas: ' + _6E1 + ',' + _7E1);
_nI(0, 0, _6E1, _7E1)
}
function _hE1(_fr) {
var _qE1 = _fr["accelerationIncludingGravity"];
var _rE1 = 1.0 / 9.81;
_WD1._f3 = _qE1["x"] * _rE1;
_WD1._g3 = _qE1["y"] * _rE1;
_WD1._Cc = _qE1["z"] * _rE1
}
function _gE1() {
if (_Yp._A5.FlurryId) {
if (document.webkitHidden == !0) {
debug('pause flurry session');
FlurryAgent._sE1()
} else if (document.webkitHidden == !1) {
debug('resume flurry session: ' + _Yp._A5.FlurryId);
FlurryAgent.startSession(_Yp._A5.FlurryId)
}
}
}
function _tE1() {
tizen.systeminfo.getPropertyValue("DEVICE_ORIENTATION", _uE1, null)
}
function _uE1(_vE1) {
var _vE1 = _vE1['status'];
if (_TD1 != _vE1) {
var _wE1 = Math.abs(_WD1._Cc);
if (_wE1 < 0.75 || _TD1 == -1) {
_xE1(_vE1)
}
}
}
function _bE1(_lz, _xJ, _yJ) {
debug("tizenUrlOpen:" + _lz);
var appControl = new tizen["ApplicationControl"]("http://tizen.org/appcontrol/operation/view", _lz);
tizen["application"]["launchAppControl"](appControl, null,
function() {
console.log("launch application control succeed")
},
function(e) {
console.log("launch application control failed. reason: " + e.message)
},
null)
}
function _xE1(_yE1) {
debug("orientation changed: " + _yE1);
var _vE1 = _Yp._A5.RotateCanvas;
if (_TD1 != -1) {
if (_vE1 == 0 && (_yE1 == "LANDSCAPE_PRIMARY" || _yE1 == "LANDSCAPE_SECONDARY")) return 0;
if (_vE1 == 1 && (_yE1 == "PORTRAIT_PRIMARY" || _yE1 == "PORTRAIT_SECONDARY")) return 0
}
var _zE1 = document.getElementById("gm4html5_div_id");
var _6E1 = document.documentElement.clientWidth;
var _7E1 = document.documentElement.clientHeight;
var _AE1 = !1;
var _Mb = _VD1;
var _Lb = 0;
switch (_yE1) {
case "PORTRAIT_PRIMARY":
{
_zE1.style.webkitTransform = "rotate(0deg) translateX(0px) translateY(0px)";
break
}
case "PORTRAIT_SECONDARY":
{
if (_vE1 == 0 || _vE1 == 2) {
_Mb = 0;
_zE1.style.webkitTransform = "rotate(180deg) translateY(-" + _7E1 + "px)"
} else {
_zE1.style.webkitTransform = "rotate(0deg) translateX(0px) translateY(0px)";
}
break
}
case "LANDSCAPE_SECONDARY":
{
if (_vE1 == 2) {
_zE1.style.webkitTransform = "rotate(-90deg) translateY(-" + _6E1 / 2 + "px) translateX(-" + (_7E1 - _6E1 / 2) + "px)";
_AE1 = !0
} else if (_vE1 == 1) {
_zE1.style.webkitTransform = "rotate(180deg) translateX(0px) translateY(-" + _7E1 + "px)";
_Mb = 0
} else {
_zE1.style.webkitTransform = "rotate(0deg) translateX(0px) translateY(0px)"
}
break
}
case "LANDSCAPE_PRIMARY":
{
if (_vE1 == 2) {
_zE1.style.webkitTransform = "rotate(90deg) translateX(" + _6E1 / 2 + "px) translateY(-" + _6E1 / 2 + "px)";
_AE1 = !0;
_Lb = _VD1
} else {
_zE1.style.webkitTransform = "rotate(0deg) translateX(0px) translateY(0px)"
}
break
}
default:
debug("****** Unknown ori: " + _TD1);
break
}
if (_AE1) {
_7E1 -= _VD1;
debug("window_set_rectangle: " + _7E1 + "," + _6E1);
_nI(0, 0, _7E1, _6E1)
} else {
_7E1 -= _VD1;
debug("window_set_rectangle: " + _6E1 + "," + _7E1);
_nI(0, 0, _6E1, _7E1)
}
_TD1 = _yE1
}
function _fE1(_8h, _ch) {
var _BE1 = _8h.pageX;
var _CE1 = _8h.pageY;
var _vE1 = _Yp._A5.RotateCanvas;
var _6E1 = document.documentElement.clientWidth;
var _7E1 = document.documentElement.clientHeight;
_ch._f3 = _BE1;
_ch._g3 = _CE1;
switch (_TD1) {
case "PORTRAIT_PRIMARY":
break;
case "PORTRAIT_SECONDARY":
{
if (_vE1 == 0 || _vE1 == 2) {
_ch._f3 = _6E1 - _BE1;
_ch._g3 = _7E1 - _CE1
}
break
}
case "LANDSCAPE_SECONDARY":
{
if (_vE1 == 2) {
_ch._f3 = _7E1 - _CE1;
_ch._g3 = _BE1
} else if (_vE1 == 1) {
_ch._f3 = _6E1 - _BE1;
_ch._g3 = _7E1 - _CE1
}
break
}
case "LANDSCAPE_PRIMARY":
{
if (_vE1 == 2) {
_ch._f3 = _CE1;
_ch._g3 = _6E1 - _BE1
}
break
}
default:
debug("****** Unknown ori: " + _TD1);
break
}
}
function _aE1() {
if (_TD1 == "PORTRAIT_PRIMARY" || _TD1 == "PORTRAIT_SECONDARY") {
return 1
}
return 0
}
function _ZD1() {
var index;
for (index = 0; index < arguments.length; ++index) {
console.log(arguments[index])
}
}
function _2E1() {
return _WD1._f3
}
function _3E1() {
return _WD1._g3
}
function _4E1() {
return _WD1._Cc
}
var _DE1 = "Not Enabled";
var _EE1 = "Not Available";
var _FE1 = "Loading";
var _GE1 = "Available";
var _HE1 = "Processing Order";
function _IE1() {
this._JE1 = _DE1;
this._KE1 = !1;
this._LE1 = "";
this._ME1 = 0;
this._NE1 = !0;
this._OE1 = null;
this._Vx = -1
}
var _PE1 = new _IE1();
var _QE1 = 128;
function _cE1() {
_Bx = _RE1;
_Dx = _SE1;
_Ex = _TE1;
_Fx = _UE1;
_Gx = _VE1;
_Bi = _WE1
}
function _WE1() {
var _XE1 = tizen.systeminfo.getCapabilities();
var _YE1 = _XE1["duid"];
return _YE1.toString()
}
function _ZE1() {
_Cx({
type: _px,
status: _ux
})
}
function __E1() {
_Cx({
type: _px,
status: _vx
})
}
_IE1.prototype._0F1 = function(_1F1, _2F1) {
this._JE1 = _1F1;
if (_2F1 != undefined) {
debug("Tizen IAP State-> " + _1F1 + " : " + _2F1)
} else {
debug("Tizen IAP State-> " + _1F1)
}
};
_IE1.prototype._3F1 = function() {
return this._JE1
};
_IE1.prototype._4F1 = function(_5F1) {
this._NE1 = _Yp._A5.IAPSandbox;
if (this._NE1) {
debug("Activating Tizen IAP in SANDBOX mode with groupID:" + _5F1);
} else {
debug("Activating Tizen IAP in COMMERCIAL mode with groupID:" + _5F1)
}
this._LE1 = _5F1;
this._0F1(_FE1);
this._6F1()
};
var _7F1 = {
onfailure: function() {
console.log("AppControlReplyCB onfailure!");
_PE1._0F1(_EE1);
_ZE1()
},
onsuccess: function(_8F1) {
if (_8F1 != null) {
var data = {};
var _H3;
var length = _8F1.length;
for (_H3 = 0; _H3 < length; _H3++) {
data[_8F1[_H3]._pz] = _8F1[_H3].value + ''
}
var _9F1 = data["_result"];
var _aF1 = _bF1(_9F1);
var method = data["_method"];
debug("IAP callback: method:" + method + " result:" + _9F1 + " " + _aF1);
if (method == 'OnPurchaseItemInitialized') {
_PE1._cF1(data, _9F1)
} else if (method == 'OnPurchaseItemFinished') {
_PE1._dF1(data, _9F1)
} else if (method == 'OnItemInformationListReceived') {
_PE1._eF1(data, _9F1)
} else if (method == 'OnPurchasedItemInformationListReceived') {
_PE1._fF1(data, _9F1)
}
}
}
};
function _bF1(_gF1) {
var _hF1 = parseInt(_gF1, 10);
switch (_hF1) {
case 0:
return ('Success');
case 100:
return ('Request cancelled');
case 200:
return ('Network error occured');
case 9000:
return ('Process error occured');
case 9200:
return ('Service Unavailable');
case 9201:
return ('Item GroupId NotFound');
case 9203:
return ('PaymentId Not Found');
case 9207:
return ('ItemId Not Found')
}
return ('Unknown status code ' + _9F1)
}
_IE1.prototype._iF1 = function(_bk1, _jF1) {
var _oi = new Object();
_oi.id = _bk1[_jF1 + '_itemId'];
_oi.name = _bk1[_jF1 + '_itemName'];
_oi._kF1 = _bk1[_jF1 + '_itemDownloadUrl'];
_oi.description = _bk1[_jF1 + '_itemDescription'];
_oi._Kx = "";
var _lF1 = _bk1[_jF1 + '_itemPrice'];
var _mF1 = _bk1[_jF1 + '_currencyUnit'];
var _nF1 = _bk1[_jF1 + '_unitPrecedes'];
var _oF1 = _bk1[_jF1 + '_hasPenny'];
var _pF1 = _lF1.split('.');
_pF1 = _pF1[0] + '.' + _pF1[1].substr(0, 2);
_oi._Jx = _pF1;
return _oi
};
_IE1.prototype._qF1 = function(_rF1) {
var _Bo1 = "{ \"productId\":\"" + _rF1.id + "\"" + ", \"title\":\"" + _rF1.name + "\"" + ", \"price\":\"" + _rF1._Jx + "\"" + ", \"description\":\"" + _rF1.description + "\"}";
_Cx({
type: _qx,
_0y: _Bo1
})
};
_IE1.prototype._sF1 = function(_tF1, _Do1, _uF1, _vF1) {
var _wF1 = 0;
var _xF1 = -3;
var _Kx = (_vF1) ? _wF1: _xF1;
var _Bo1 = "{ \"productId\":\"" + _tF1 + "\"" + ", \"purchaseIndex\":" + _Do1 + ", \"purchaseState\":" + _Kx + ", \"response\":" + _uF1 + " }";
_Cx({
type: _rx,
_0y: _Bo1
})
};
var _yF1 = _IE1._eF1;
_IE1.prototype._eF1 = function(_bk1, _Co1) {
if (_Co1 == 0) {
var _zF1 = parseInt(_bk1["_startNumber"]);
var _AF1 = parseInt(_bk1["_endNumber"]);
for (var _H3 = _zF1; _H3 <= _AF1; _H3++) {
var _oi = this._iF1(_bk1, _H3);
_oi._Kx = "Available";
this._qF1(_oi)
}
this._0F1(_FE1, "retrieving purchased items...");
this._BF1()
} else {
this._0F1(_EE1, "failed to get buy item list");
_ZE1()
}
};
var _CF1 = _IE1._fF1;
_IE1.prototype._fF1 = function(_bk1, _Co1) {
if (_Co1 == 0) {
var _zF1 = parseInt(_bk1["_startNumber"]);
var _AF1 = parseInt(_bk1["_endNumber"]);
for (var _H3 = _zF1; _H3 <= _AF1; _H3++) {
var _oi = this._iF1(_bk1, _H3);
this._qF1(_oi);
this._sF1(_oi.id, -1, 0, !0)
}
this._0F1(_GE1, "got purchased item list");
__E1();
this._KE1 = !0
} else {
this._0F1(_GE1, "failed to get purchased item list - user not signed in?");
__E1();
this._KE1 = !0
}
};
var _DF1 = _IE1._cF1;
_IE1.prototype._cF1 = function(_bk1, _Co1) {
var _EF1 = _bk1['_transactionId'];
if (_Co1 == 0) {
var _FF1 = _bk1['_itemId'];
var _GF1 = [new tizen.ApplicationControlData('_transactionId', [_EF1]), new tizen.ApplicationControlData('_itemId', [_FF1]), new tizen.ApplicationControlData('_purchaseResume', ['1'])];
this._HF1('http://tizen.org/appcontrol/operation/iap/purchase', 'tizeninapp.IapClient', _GF1, _7F1)
} else {
debug("IAP purchase was not successful");
this._sF1(this._OE1, _EF1, _Co1, !1);
this._OE1 = null;
this._0F1(_GE1)
}
};
var _IF1 = _IE1._dF1;
_IE1.prototype._dF1 = function(_bk1, _Co1) {
var _JF1 = (_Co1 == 0);
var _EF1 = _bk1['_transactionId'];
if (_JF1) {
debug("IAP purchase was successful")
} else {
debug("IAP purchase failed with status:" + _bF1(_Co1))
}
this._sF1(this._OE1, _EF1, _Co1, _JF1);
this._0F1(_GE1, "purchase operation finished");
};
_IE1.prototype._HF1 = function(_KF1, _tp1, _LF1) {
if (this._NE1) {
_LF1.push(new tizen.ApplicationControlData('_mcc', ['250']));
_LF1.push(new tizen.ApplicationControlData('_mnc', ['01']));
_LF1.push(new tizen.ApplicationControlData('_mode', ['1']))
} else {
_LF1.push(new tizen.ApplicationControlData('_mode', ['0']))
}
var _MF1 = new tizen.ApplicationControl(_KF1, null, null, null, _LF1);
tizen.application.launchAppControl(_MF1, _tp1,
function() {},
function(e) {
console.log("launch app control fail - Reason: " + e);
if (_tp1 == "tizeninapp.IapClient") {
this._0F1(_GE1);
this._sF1(this._OE1, this._Vx, 9000, !1)
} else {
this._0F1(_EE1);
_ZE1()
}
},
_7F1)
};
_IE1.prototype._6F1 = function() {
var _NF1 = 1;
var _OF1 = _QE1;
var _LE1 = this._LE1;
this._ME1 += 1;
var _PF1 = this._ME1;
var _GF1 = [new tizen.ApplicationControlData('_transactionId', [_PF1]), new tizen.ApplicationControlData('_startNumber', [_NF1]), new tizen.ApplicationControlData('_endNumber', [_OF1]), new tizen.ApplicationControlData('_itemGroupId', [_LE1])];
this._HF1('http://tizen.org/appcontrol/operation/iap/get_item_list', 'tizeninapp.IapService', _GF1, _7F1)
};
_IE1.prototype._BF1 = function() {
var _NF1 = 1;
var _OF1 = _QE1;
var _LE1 = this._LE1;
this._ME1 += 1;
var _PF1 = this._ME1;
var _GF1 = [new tizen.ApplicationControlData('_transactionId', [_PF1]), new tizen.ApplicationControlData('_startNumber', [_NF1]), new tizen.ApplicationControlData('_endNumber', [_OF1]), new tizen.ApplicationControlData('_itemGroupId', [_LE1])];
this._HF1('http://tizen.org/appcontrol/operation/iap/get_purchased_item_list', 'tizeninapp.IapService', _GF1, _7F1)
};
_IE1.prototype._QF1 = function(_RF1, _Do1) {
this._OE1 = _RF1;
this._Vx = _Do1;
var _SF1 = _RF1;
var _LE1 = this._LE1;
var _GF1 = [new tizen.ApplicationControlData('_itemId', [_SF1]), new tizen.ApplicationControlData('_itemGroupId', [_LE1]), new tizen.ApplicationControlData('_transactionId', [_Do1]), ];
this._0F1(_HE1);
this._HF1('http://tizen.org/appcontrol/operation/iap/purchase', 'tizeninapp.IapClient', _GF1, _7F1)
};
function _RE1(_zo1) {
var _LE1 = _Yp._A5._TF1;
if (typeof(_LE1) != "string" || _LE1.length <= 0) {
debug("Tizen Item Group ID not set")
} else {
_PE1._4F1(_LE1)
}
}
function _TE1(_RF1, _Do1) {
_PE1._QF1(_RF1, _Do1)
}
function _UE1(_Ch) {
debug("Tizen IAP does not support consumables");
var _UF1 = 0;
var _Bo1 = "{ \"productId\":\"" + _Ch + "\"" + ", \"consumed\":\"false\"" + ", \"response\":" + _UF1 + " }";
_Cx({
type: _sx,
_0y: _Bo1
})
}
function _SE1() {
var _Co1 = 0;
_Cx({
type: _tx,
_8j: _Co1
})
}
function _VE1(_Ch) {
var response = "{ \"response\":6 }";
_Cx({
type: _qx,
_0y: response
})
}
var _VF1 = 0;
var _WF1 = 1;
var _XF1 = 2;
var _YF1 = [];
function _ZF1(__F1, _ce, _0G1) {
this._JF1 = __F1;
this.type = _ce;
this.data = _0G1
}
function _eE1() {
_PI = _1G1;
_2G1 = _3G1;
_4G1();
_5G1();
var _6G1 = tizen.application.getCurrentApplication().getRequestedAppControl();
if (_6G1) {
console.log("Requester AppID : " + _6G1.callerAppId);
var appControl = _6G1.appControl;
var _7G1 = _8G1(appControl);
if (_7G1 != null) {
_9G1(!0, _WF1, _7G1)
}
}
}
function _4G1() {
debug("Register push service...");
var _aG1 = new tizen.ApplicationControl("http://tizen.org/appcontrol/operation/push_notify");
tizen.push.registerService(_aG1, _bG1, _cG1)
}
var _dG1 = _cG1;
function _cG1(response) {
debug('Push registration error: ' + response['name']);
debug('response.code= ' + response['code']);
debug('response.message= ' + response['message']);
_9G1(!1, _VF1, response['name'])
}
var _eG1 = _bG1;
function _bG1(id) {
debug("Push Registration succeeded with id: " + id);
_9G1(!0, _VF1, id);
debug("Connect to push service...");
tizen.push.connectService(_fG1, _gG1)
}
var _hG1 = _gG1;
function _gG1(response) {
console.log('# # # # #Push error callback: ' + response['name']);
_9G1(!1, _WF1, response['name'])
}
var _iG1 = _fG1;
function _fG1(_jG1) {
console.log("# # # # Push notification received");
var message = _jG1['alertMessage'];
var _7G1 = _jG1['appData'];
if (_tL == !1) {
_kG1(message, _7G1)
} else {
_9G1(!0, _WF1, _7G1)
}
}
function _kG1(_lG1, _bk1) {
console.log("PostNotification: " + _lG1);
try {
var _mG1 = tizen.application.getAppInfo();
var _nG1 = _mG1['id'].split(".");
var _oG1 = "/opt/apps/" + _nG1[0] + "/res/wgt/icon.png";
var _pG1 = {};
_pG1['content'] = _lG1;
_pG1['iconPath'] = _oG1;
_pG1['vibration'] = !0;
_pG1['appId'] = _mG1['id'];
var _LF1 = new tizen.ApplicationControlData("http://tizen.org/appcontrol/data/push/appdata", [_bk1]);
var appControl = new tizen.ApplicationControl("http://tizen.org/appcontrol/operation/push_notify", null, null, null, [_LF1]);
_pG1['appControl'] = appControl;
var _qG1 = _nG1[1];
var notification = new tizen.StatusNotification("SIMPLE", _qG1, _pG1);
tizen.notification.post(notification)
} catch(err) {
console.log(err.name + ": " + err.message)
}
}
function _1G1() {
if (_YF1.length <= 0) return;
console.log("tizenPushEventsDispatch: " + _YF1.length + " events");
var map = _9i();
_w6._rG1 = map;
for (var _H3 = 0; _H3 < _YF1.length; ++_H3) {
var _sG1 = _YF1[_H3];
var _tG1 = "";
switch (_sG1.type) {
case 0:
_tG1 = "register";
break;
case 1:
_tG1 = "remote";
break;
case 2:
_tG1 = "local";
break
}
_ei(map);
if (!_sG1._JF1) {
_ji(map, "status", 0);
_ji(map, "type", _tG1);
_ji(map, "error", _sG1.data)
} else if (_sG1.type == _VF1) {
_ji(map, "type", _tG1);
_ji(map, "status", 1);
_ji(map, "reg_id", _sG1.data)
} else {
_ji(map, "type", _tG1);
_ji(map, "status", 1);
_ji(map, "data", _sG1.data)
}
_Ys._uG1(_vG1, 0)
}
_ci(map);
_w6._rG1 = -1;
_YF1.length = 0
}
function _9G1(__F1, _ce, _0G1) {
_YF1.push(new _ZF1(__F1, _ce, _0G1))
}
function _8G1(appControl) {
if (appControl['operation'] == "http://tizen.org/appcontrol/operation/push_notify") {
var data = appControl['data'];
for (var _H3 = 0; _H3 < data.length; _H3++) {
if (data[_H3]['key'] == "http://tizen.org/appcontrol/data/push/appdata") {
var _7G1 = data[_H3].value[0];
console.log("Got Notification payload:");
return _7G1
}
}
}
return null
}
function _5G1() {
var _wG1 = tizen.notification.getAll();
var index = 0;
debug("***** Found " + _wG1.length + " notifications");
for (index = 0; index < _wG1.length; index++) {
console.log(_wG1[index]['id'] + ": title=" + _wG1[index]['title'] + " content=" + _wG1[index]['content']);
var appControl = _wG1[index].appControl;
var _7G1 = _8G1(appControl);
if (_7G1 != null) {
_9G1(!0, _WF1, _7G1);
try {
tizen.notification.remove(_wG1[index].id)
} catch(err) {
console.log(err.name + ": " + err.message)
}
}
}
}
function _3G1() {
if (!_tL) {
_tL = !0;
_5G1()
}
} (function() {
'use strict';
function _F9(_W9) {
throw _W9
}
var _C9 = void 0,
_T9 = this;
function _9q(_W9, _mk) {
var _kb = _W9.split("."),
_I3 = _T9; ! (_kb[0] in _I3) && _I3._xG1 && _I3._xG1("var " + _kb[0]);
for (var _Mq; _kb.length && (_Mq = _kb.shift());) ! _kb.length && _mk !== _C9 ? _I3[_Mq] = _mk: _I3 = _I3[_Mq] ? _I3[_Mq] : _I3[_Mq] = {}
};
var _vb = "undefined" !== typeof Uint8Array && "undefined" !== typeof Uint16Array && "undefined" !== typeof Uint32Array;
function _xb(_W9) {
var _mk = _W9.length,
_kb = 0,
_I3 = Number.POSITIVE_INFINITY,
_Mq, e, _jb, _K3, _eT, _R9, _fu, _mv, _V9;
for (_mv = 0; _mv < _mk; ++_mv) _W9[_mv] > _kb && (_kb = _W9[_mv]),
_W9[_mv] < _I3 && (_I3 = _W9[_mv]);
_Mq = 1 << _kb;
e = new(_vb ? Uint32Array: Array)(_Mq);
_jb = 1;
_K3 = 0;
for (_eT = 2; _jb <= _kb;) {
for (_mv = 0; _mv < _mk; ++_mv) if (_W9[_mv] === _jb) {
_R9 = 0;
_fu = _K3;
for (_V9 = 0; _V9 < _jb; ++_V9) _R9 = _R9 << 1 | _fu & 1,
_fu >>= 1;
for (_V9 = _R9; _V9 < _Mq; _V9 += _eT) e[_V9] = _jb << 16 | _mv; ++_K3
}++_jb;
_K3 <<= 1;
_eT <<= 1
}
return [e, _kb, _I3]
};
function _J3(_W9, _mk) {
this._jb = [];
this._K3 = 32768;
this._mk = this._Mq = this._kb = this._R9 = 0;
this._2u = _vb ? new Uint8Array(_W9) : _W9;
this._F9 = !1;
this._H3 = _f3;
this._T9 = !1;
if (_mk || !(_mk = {})) _mk.index && (this._kb = _mk.index),
_mk._yG1 && (this._K3 = _mk._yG1),
_mk._zG1 && (this._H3 = _mk._zG1),
_mk._AG1 && (this._T9 = _mk._AG1);
switch (this._H3) {
case _g3:
this._W9 = 32768;
this._I3 = new(_vb ? Uint8Array: Array)(32768 + this._K3 + 258);
break;
case _f3:
this._W9 = 0;
this._I3 = new(_vb ? Uint8Array: Array)(this._K3);
this.e = this._Cc;
this._C9 = this._xb;
this.__9 = this._J3;
break;
default:
_F9(_Xg("invalid inflate mode"))
}
}
var _g3 = 0,
_f3 = 1,
_Cc = {
_V9: _g3,
_9q: _f3
};
_J3.prototype._eT = function() {
for (; ! this._F9;) {
var _W9 = _aM(this, 3);
_W9 & 1 && (this._F9 = !0);
_W9 >>>= 1;
switch (_W9) {
case 0:
var _mk = this._2u,
_kb = this._kb,
_I3 = this._I3,
_Mq = this._W9,
e = _C9,
_jb = _C9,
_K3 = _C9,
_eT = _I3.length,
_R9 = _C9;
this._mk = this._Mq = 0;
e = _mk[_kb++];
e === _C9 && _F9(_Xg("invalid uncompressed block header: LEN (first byte)"));
_jb = e;
e = _mk[_kb++];
e === _C9 && _F9(_Xg("invalid uncompressed block header: LEN (second byte)"));
_jb |= e << 8;
e = _mk[_kb++];
e === _C9 && _F9(_Xg("invalid uncompressed block header: NLEN (first byte)"));
_K3 = e;
e = _mk[_kb++];
e === _C9 && _F9(_Xg("invalid uncompressed block header: NLEN (second byte)"));
_K3 |= e << 8;
_jb === ~_K3 && _F9(_Xg("invalid uncompressed block header: length verify"));
_kb + _jb > _mk.length && _F9(_Xg("input buffer is broken"));
switch (this._H3) {
case _g3:
for (; _Mq + _jb > _I3.length;) {
_R9 = _eT - _Mq;
_jb -= _R9;
if (_vb) _I3.set(_mk.subarray(_kb, _kb + _R9), _Mq),
_Mq += _R9,
_kb += _R9;
else for (; _R9--;) _I3[_Mq++] = _mk[_kb++];
this._W9 = _Mq;
_I3 = this.e();
_Mq = this._W9
}
break;
case _f3:
for (; _Mq + _jb > _I3.length;) _I3 = this.e({
_mv: 2
});
break;
default:
_F9(_Xg("invalid inflate mode"))
}
if (_vb) _I3.set(_mk.subarray(_kb, _kb + _jb), _Mq),
_Mq += _jb,
_kb += _jb;
else for (; _jb--;) _I3[_Mq++] = _mk[_kb++];
this._kb = _kb;
this._W9 = _Mq;
this._I3 = _I3;
break;
case 1:
this.__9(_pN, _jO);
break;
case 2:
_BG1(this);
break;
default:
_F9(_Xg("unknown BTYPE: " + _W9))
}
}
return this._C9()
};
var _GQ = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15],
_FX = _vb ? new Uint16Array(_GQ) : _GQ,
_BX = [3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 15, 17, 19, 23, 27, 31, 35, 43, 51, 59, 67, 83, 99, 115, 131, 163, 195, 227, 258, 258, 258],
_CX = _vb ? new Uint16Array(_BX) : _BX,
_CG1 = [0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 0, 0, 0],
_fP = _vb ? new Uint8Array(_CG1) : _CG1,
_DG1 = [1, 2, 3, 4, 5, 7, 9, 13, 17, 25, 33, 49, 65, 97, 129, 193, 257, 385, 513, 769, 1025, 1537, 2049, 3073, 4097, 6145, 8193, 12289, 16385, 24577],
_891 = _vb ? new Uint16Array(_DG1) : _DG1,
_ze1 = [0, 0, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 13, 13],
_EN = _vb ? new Uint8Array(_ze1) : _ze1,
_EG1 = new(_vb ? Uint8Array: Array)(288),
_FG1,
_qV;
_FG1 = 0;
for (_qV = _EG1.length; _FG1 < _qV; ++_FG1) _EG1[_FG1] = 143 >= _FG1 ? 8 : 255 >= _FG1 ? 9 : 279 >= _FG1 ? 7 : 8;
var _pN = _xb(_EG1),
_pV = new(_vb ? Uint8Array: Array)(30),
_GG1,
_HG1;
_GG1 = 0;
for (_HG1 = _pV.length; _GG1 < _HG1; ++_GG1) _pV[_GG1] = 5;
var _jO = _xb(_pV);
function _aM(_W9, _mk) {
for (var _kb = _W9._Mq,
_I3 = _W9._mk,
_Mq = _W9._2u,
e = _W9._kb,
_jb; _I3 < _mk;) _jb = _Mq[e++],
_jb === _C9 && _F9(_Xg("input buffer is broken")),
_kb |= _jb << _I3,
_I3 += 8;
_jb = _kb & (1 << _mk) - 1;
_W9._Mq = _kb >>> _mk;
_W9._mk = _I3 - _mk;
_W9._kb = e;
return _jb
}
function _gO(_W9, _mk) {
for (var _kb = _W9._Mq,
_I3 = _W9._mk,
_Mq = _W9._2u,
e = _W9._kb,
_jb = _mk[0], _K3 = _mk[1], _eT, _R9, _fu; _I3 < _K3;) {
_eT = _Mq[e++];
if (_eT === _C9) break;
_kb |= _eT << _I3;
_I3 += 8
}
_R9 = _jb[_kb & (1 << _K3) - 1];
_fu = _R9 >>> 16;
_W9._Mq = _kb >> _fu;
_W9._mk = _I3 - _fu;
_W9._kb = e;
return _R9 & 65535
}
function _BG1(_W9) {
function _mk(_kb, _W9, _I3) {
var _mk, e, _Mq, _jb;
for (_jb = 0; _jb < _kb;) switch (_mk = _gO(this, _W9), _mk) {
case 16:
for (_Mq = 3 + _aM(this, 2); _Mq--;) _I3[_jb++] = e;
break;
case 17:
for (_Mq = 3 + _aM(this, 3); _Mq--;) _I3[_jb++] = 0;
e = 0;
break;
case 18:
for (_Mq = 11 + _aM(this, 7); _Mq--;) _I3[_jb++] = 0;
e = 0;
break;
default:
e = _I3[_jb++] = _mk
}
return _I3
}
var _kb = _aM(_W9, 5) + 257,
_I3 = _aM(_W9, 5) + 1,
_Mq = _aM(_W9, 4) + 4,
e = new(_vb ? Uint8Array: Array)(_FX.length),
_jb,
_K3,
_eT,
_R9;
for (_R9 = 0; _R9 < _Mq; ++_R9) e[_FX[_R9]] = _aM(_W9, 3);
_jb = _xb(e);
_K3 = new(_vb ? Uint8Array: Array)(_kb);
_eT = new(_vb ? Uint8Array: Array)(_I3);
_W9.__9(_xb(_mk.call(_W9, _kb, _jb, _K3)), _xb(_mk.call(_W9, _I3, _jb, _eT)))
}
_J3.prototype.__9 = function(_W9, _mk) {
var _kb = this._I3,
_I3 = this._W9;
this._4s = _W9;
for (var _Mq = _kb.length - 258,
e, _jb, _K3, _eT; 256 !== (e = _gO(this, _W9));) if (256 > e) _I3 >= _Mq && (this._W9 = _I3, _kb = this.e(), _I3 = this._W9),
_kb[_I3++] = e;
else {
_jb = e - 257;
_eT = _CX[_jb];
0 < _fP[_jb] && (_eT += _aM(this, _fP[_jb]));
e = _gO(this, _mk);
_K3 = _891[e];
0 < _EN[e] && (_K3 += _aM(this, _EN[e]));
_I3 >= _Mq && (this._W9 = _I3, _kb = this.e(), _I3 = this._W9);
for (; _eT--;) _kb[_I3] = _kb[_I3++-_K3]
}
for (; 8 <= this._mk;) this._mk -= 8,
this._kb--;
this._W9 = _I3
};
_J3.prototype._J3 = function(_W9, _mk) {
var _kb = this._I3,
_I3 = this._W9;
this._4s = _W9;
for (var _Mq = _kb.length,
e, _jb, _K3, _eT; 256 !== (e = _gO(this, _W9));) if (256 > e) _I3 >= _Mq && (_kb = this.e(), _Mq = _kb.length),
_kb[_I3++] = e;
else {
_jb = e - 257;
_eT = _CX[_jb];
0 < _fP[_jb] && (_eT += _aM(this, _fP[_jb]));
e = _gO(this, _mk);
_K3 = _891[e];
0 < _EN[e] && (_K3 += _aM(this, _EN[e]));
_I3 + _eT > _Mq && (_kb = this.e(), _Mq = _kb.length);
for (; _eT--;) _kb[_I3] = _kb[_I3++-_K3]
}
for (; 8 <= this._mk;) this._mk -= 8,
this._kb--;
this._W9 = _I3
};
_J3.prototype.e = function() {
var _W9 = new(_vb ? Uint8Array: Array)(this._W9 - 32768),
_mk = this._W9 - 32768,
_kb,
_I3,
_Mq = this._I3;
if (_vb) _W9.set(_Mq.subarray(32768, _W9.length));
else {
_kb = 0;
for (_I3 = _W9.length; _kb < _I3; ++_kb) _W9[_kb] = _Mq[_kb + 32768]
}
this._jb.push(_W9);
this._R9 += _W9.length;
if (_vb) _Mq.set(_Mq.subarray(_mk, _mk + 32768));
else for (_kb = 0; 32768 > _kb; ++_kb) _Mq[_kb] = _Mq[_mk + _kb];
this._W9 = 32768;
return _Mq
};
_J3.prototype._Cc = function(_W9) {
var _mk, _kb = this._2u.length / this._kb + 1 | 0,
_I3, _Mq, e, _jb = this._2u,
_K3 = this._I3;
_W9 && ("number" === typeof _W9._mv && (_kb = _W9._mv), "number" === typeof _W9._vb && (_kb += _W9._vb));
2 > _kb ? (_I3 = (_jb.length - this._kb) / this._4s[2], e = 258 * (_I3 / 2) | 0, _Mq = e < _K3.length ? _K3.length + e: _K3.length << 1) : _Mq = _K3.length * _kb;
_vb ? (_mk = new Uint8Array(_Mq), _mk.set(_K3)) : _mk = _K3;
return this._I3 = _mk
};
_J3.prototype._C9 = function() {
var _W9 = 0,
_mk = this._I3,
_kb = this._jb,
_I3, _Mq = new(_vb ? Uint8Array: Array)(this._R9 + (this._W9 - 32768)),
e,
_jb,
_K3,
_eT;
if (0 === _kb.length) return _vb ? this._I3.subarray(32768, this._W9) : this._I3.slice(32768, this._W9);
e = 0;
for (_jb = _kb.length; e < _jb; ++e) {
_I3 = _kb[e];
_K3 = 0;
for (_eT = _I3.length; _K3 < _eT; ++_K3) _Mq[_W9++] = _I3[_K3]
}
e = 32768;
for (_jb = this._W9; e < _jb; ++e) _Mq[_W9++] = _mk[e];
this._jb = [];
return this.buffer = _Mq
};
_J3.prototype._xb = function() {
var _W9, _mk = this._W9;
_vb ? this._T9 ? (_W9 = new Uint8Array(_mk), _W9.set(this._I3.subarray(0, _mk))) : _W9 = this._I3.subarray(0, _mk) : (this._I3.length > _mk && (this._I3.length = _mk), _W9 = this._I3);
return this.buffer = _W9
};
function _IG1(_W9, _mk) {
var _kb, _I3;
this._2u = _W9;
this._kb = 0;
if (_mk || !(_mk = {})) _mk.index && (this._kb = _mk.index),
_mk._JG1 && (this._aM = _mk._JG1);
_kb = _W9[this._kb++];
_I3 = _W9[this._kb++];
switch (_kb & 15) {
case _KG1:
this.method = _KG1;
break;
default:
_F9(_Xg("unsupported compression method"))
}
0 !== ((_kb << 8) + _I3) % 31 && _F9(_Xg("invalid fcheck flag:" + ((_kb << 8) + _I3) % 31));
_I3 & 32 && _F9(_Xg("fdict flag is not supported"));
this._fu = new _J3(_W9, {
index: this._kb,
_yG1: _mk._yG1,
_zG1: _mk._zG1,
_AG1: _mk._AG1
})
}
_IG1.prototype._eT = function() {
var _W9 = this._2u,
_mk, _kb;
_mk = this._fu._eT();
this._kb = this._fu._kb;
if (this._aM) {
_kb = (_W9[this._kb++] << 24 | _W9[this._kb++] << 16 | _W9[this._kb++] << 8 | _W9[this._kb++]) >>> 0;
var _I3 = _mk;
if ("string" === typeof _I3) {
var _Mq = _I3.split(""),
e,
_jb;
e = 0;
for (_jb = _Mq.length; e < _jb; e++) _Mq[e] = (_Mq[e].charCodeAt(0) & 255) >>> 0;
_I3 = _Mq
}
for (var _K3 = 1,
_eT = 0,
_R9 = _I3.length,
_fu, _mv = 0; 0 < _R9;) {
_fu = 1024 < _R9 ? 1024 : _R9;
_R9 -= _fu;
do _K3 += _I3[_mv++],
_eT += _K3;
while (--_fu);
_K3 %= 65521;
_eT %= 65521
}
_kb !== (_eT << 16 | _K3) >>> 0 && _F9(_Xg("invalid adler-32 checksum"))
}
return _mk
};
var _KG1 = 8;
_9q("Zlib.Inflate", _IG1);
_9q("Zlib.Inflate.prototype.decompress", _IG1.prototype._eT);
var _LG1 = {
_MG1: _Cc._9q,
_NG1: _Cc._V9
},
_io,
_jo,
_ko,
$;
if (Object._OG1) _io = Object._OG1(_LG1);
else for (_jo in _io = [], _ko = 0, _LG1) _io[_ko++] = _jo;
_ko = 0;
for ($ = _io.length; _ko < $; ++_ko) _jo = _io[_ko],
_9q("Zlib.Inflate.BufferType." + _jo, _LG1[_jo])
}).call(this);
var _PG1 = !1,
_QG1 = -1,
_RG1 = -1,
_SG1 = 0,
_TG1 = 1,
_UG1 = 2,
_VG1 = 3,
_WG1 = 4,
_XG1 = 5,
_YG1 = 6,
_ZG1 = 7,
__G1 = 8,
_0H1 = 9,
_1H1 = 10,
_2H1 = 11,
_3H1 = [0, 0, 0],
_4H1 = [0, 0, 0],
_5H1 = [0, 0, 0, 0, 0, 0],
_6H1 = [0, 0, 0],
_7H1 = [0, 0, 0],
_8H1 = [0, 0, 0],
_9H1 = [0, 0, 0],
_aH1 = [0, 0, 0],
_bH1 = [0, 0, 0],
_cH1 = [0, 0, 0],
_dH1 = 0,
_eH1 = 0;
function _fH1() {
if ((_H8._I8() <= 30) || (_gH1 <= 30)) {
return 1.0
}
if ((_H8._I8() / _gH1) < 1.2) {
return 30.0 / _H8._I8()
} else {
return 30.0 / _gH1
}
}
function _hH1() {
if (!_1B(_QG1)) {
_QG1 = _mj();
_7B(_QG1, 100000)
}
if (!_1B(_RG1)) {
_RG1 = _mj();
_7B(_RG1, -100000)
}
if (!_PG1) {
_iH1()
}
}
function _iH1() {
var _H3;
_PG1 = !0;
for (_H3 = 0; _H3 <= 5; _H3++) {
_5H1[_H3] = _nj()
}
for (_H3 = 0; _H3 <= 2; _H3++) {
_6H1[_H3] = _nj();
_3H1[_H3] = _nj();
_7H1[_H3] = _nj();
_4H1[_H3] = _nj();
_8H1[_H3] = _nj();
_9H1[_H3] = _nj();
_aH1[_H3] = _nj();
_bH1[_H3] = _nj();
_cH1[_H3] = _nj()
}
_dH1 = _nj();
_eH1 = _nj()
}
function _jH1(_kH1, _V8, _W8, __d, _Sd) {
var _Mq = _fH1();
if (__d === 0) {
_zB(_5H1[0], _lH1);
_DB(_5H1[0], 0.1, 0.1, 0.05 * _Mq, 0);
_bC(_5H1[0], 0, 360, 0, 0, !1);
_fC(_5H1[0], 0, 360, 0, 0);
_dC(_5H1[0], 2 * _Mq, 2 * _Mq, -0.1 * _Mq, 0);
_rj(_5H1[0], 0.6, 0);
_5C(_5H1[0], _Xi(10.0 / _Mq), _Xi(15.0 / _Mq));
_lB(_kH1, _V8, _W8, _5H1[0], _Sd, 20);
_zB(_5H1[1], _lH1);
_DB(_5H1[1], 0.1, 0.1, 0.1 * _Mq, 0);
_bC(_5H1[1], 0, 360, 0, 0, !1);
_rj(_5H1[1], 0.8, 0);
_5C(_5H1[1], _Xi(15 / _Mq), _Xi(15 / _Mq));
_lB(_kH1, _V8, _W8, _5H1[1], _mH1, 1)
} else if (__d == 2) {
_zB(_5H1[4], _lH1);
_DB(_5H1[4], 0.4, 0.4, 0.2 * _Mq, 0);
_bC(_5H1[4], 0, 360, 0, 0, !1);
_fC(_5H1[4], 0, 360, 0, 0);
_dC(_5H1[4], 7 * _Mq, 7 * _Mq, -0.2 * _Mq, 0);
_rj(_5H1[4], 0.6, 0);
_5C(_5H1[4], _Xi(15 / _Mq), _Xi(20 / _Mq));
_lB(_kH1, _V8, _W8, _5H1[4], _Sd, 20);
_zB(_5H1[5], _lH1);
_DB(_5H1[5], 0.4, 0.4, 0.4 * _Mq, 0);
_bC(_5H1[5], 0, 360, 0, 0, !1);
_rj(_5H1[5], 0.8, 0);
_5C(_5H1[5], _Xi(20 / _Mq), _Xi(20 / _Mq));
_lB(_kH1, _V8, _W8, _5H1[5], _mH1, 1)
} else {
_zB(_5H1[2], _lH1);
_DB(_5H1[2], 0.3, 0.3, 0.1 * _Mq, 0);
_bC(_5H1[2], 0, 360, 0, 0, !1);
_fC(_5H1[2], 0, 360, 0, 0);
_dC(_5H1[2], 4 * _Mq, 4 * _Mq, -0.18 * _Mq, 0);
_rj(_5H1[2], 0.6, 0);
_5C(_5H1[2], _Xi(12 / _Mq), _Xi(17 / _Mq));
_lB(_kH1, _V8, _W8, _5H1[2], _Sd, 20);
_zB(_5H1[3], _lH1);
_DB(_5H1[3], 0.3, 0.3, 0.2 * _Mq, 0);
_bC(_5H1[3], 0, 360, 0, 0, !1);
_rj(_5H1[3], 0.8, 0);
_5C(_5H1[3], _Xi(17 / _Mq), _Xi(17 / _Mq));
_lB(_kH1, _V8, _W8, _5H1[3], _mH1, 1)
}
}
function _nH1(_kH1, _V8, _W8, __d, _Sd) {
var _Mq = _fH1();
if (__d === 0) {
_zB(_6H1[0], _oH1);
_rj(_6H1[0], 1, 0);
_DB(_6H1[0], 0.0, 0.0, 0.15 * _Mq, 0.0);
_5C(_6H1[0], _Xi(10.0 / _Mq), _Xi(12.0 / _Mq));
_lB(_kH1, _V8, _W8, _6H1[0], _Sd, 1)
} else if (__d == 2) {
_zB(_6H1[2], _oH1);
_rj(_6H1[2], 1, 0);
_DB(_6H1[2], 0, 0, 0.4 * _Mq, 0);
_5C(_6H1[2], _Xi(18.0 / _Mq), _Xi(20.0 / _Mq));
_lB(_kH1, _V8, _W8, _6H1[2], _Sd, 1)
} else {
_zB(_6H1[1], _oH1);
_rj(_6H1[1], 1, 0);
_DB(_6H1[1], 0, 0, 0.25 * _Mq, 0);
_5C(_6H1[1], _Xi(13.0 / _Mq), _Xi(15.0 / _Mq));
_lB(_kH1, _V8, _W8, _6H1[1], _Sd, 1)
}
}
function _pH1(_kH1, _V8, _W8, __d, _Sd) {
var _Mq = _fH1();
if (__d === 0) {
_zB(_3H1[0], _oH1);
_rj(_3H1[0], 1, 0);
_DB(_3H1[0], 0, 0, 0.2 * _Mq, 0);
_FB(_3H1[0], 1, 0.5);
_5C(_3H1[0], _Xi(10.0 / _Mq), _Xi(12.0 / _Mq));
_lB(_kH1, _V8, _W8, _3H1[0], _Sd, 1)
} else if (__d == 2) {
_zB(_3H1[2], _oH1);
_rj(_3H1[2], 1, 0);
_DB(_3H1[2], 0, 0, 0.6 * _Mq, 0);
_FB(_3H1[2], 1, 0.5);
_5C(_3H1[2], _Xi(18.0 / _Mq), _Xi(20.0 / _Mq));
_lB(_kH1, _V8, _W8, _3H1[2], _Sd, 1)
} else {
_zB(_3H1[1], _oH1);
_rj(_3H1[1], 1, 0);
_DB(_3H1[1], 0, 0, 0.35 * _Mq, 0);
_FB(_3H1[1], 1, 0.5);
_5C(_3H1[1], _Xi(13.0 / _Mq), _Xi(15.0 / _Mq));
_lB(_kH1, _V8, _W8, _3H1[1], _Sd, 1)
}
}
function _qH1(_kH1, _V8, _W8, __d, _Sd) {
var _Mq = _fH1();
if (__d === 0) {
_zB(_7H1[1], _rH1);
_DB(_7H1[1], 0.1, 0.2, 0, 0);
_dC(_7H1[1], 0.5 * _Mq, 3.0 * _Mq, 0.0, 0.0);
_fC(_7H1[1], 0, 360, 0, 0);
_rj(_7H1[1], 1, 0.4);
_5C(_7H1[1], _Xi(15.0 / _Mq), _Xi(25.0 / _Mq));
_hC(_7H1[1], 0.10 * _Mq, 270);
_lB(_kH1, _V8, _W8, _7H1[1], _Sd, 75)
} else if (__d == 2) {
_zB(_7H1[1], _rH1);
_DB(_7H1[1], 0.1, 0.2, 0, 0);
_dC(_7H1[1], 0.5 * _Mq, 8.0 * _Mq, 0.0, 0.0);
_fC(_7H1[1], 0, 360, 0, 0);
_rj(_7H1[1], 1, 0.4);
_5C(_7H1[1], _Xi(30.0 / _Mq), _Xi(40.0 / _Mq));
_hC(_7H1[1], 0.17 * _Mq, 270);
_lB(_kH1, _V8, _W8, _7H1[1], _Sd, 250)
} else {
_zB(_7H1[1], _rH1);
_DB(_7H1[1], 0.1, 0.2, 0, 0);
_dC(_7H1[1], 0.5 * _Mq, 6.0 * _Mq, 0.0, 0.0);
_fC(_7H1[1], 0, 360, 0, 0);
_rj(_7H1[1], 1, 0.4);
_5C(_7H1[1], _Xi(20.0 / _Mq), _Xi(30.0 / _Mq));
_hC(_7H1[1], 0.15 * _Mq, 270);
_lB(_kH1, _V8, _W8, _7H1[1], _Sd, 150)
}
}
function _sH1(_kH1, _V8, _W8, __d, _Sd) {
var _H3;
var _Mq = _fH1();
if (__d === 0) {
_zB(_4H1[0], _lH1);
_DB(_4H1[0], 0.2, 0.4, -0.01 * _Mq, 0);
_rj(_4H1[0], 0.4, 0);
_5C(_4H1[0], _Xi(25.0 / _Mq), _Xi(25.0 / _Mq));
for (_H3 = 0; _H3 <= 5; _H3++) {
_lB(_kH1, _V8 - 5 + _tH1(10), _W8 - 5 + _tH1(10), _4H1[0], _Sd, 1)
}
} else if (__d === 2) {
_zB(_4H1[2], _lH1);
_DB(_4H1[2], 0.4, 1, -0.01 * _Mq, 0);
_rj(_4H1[2], 0.4, 0);
_5C(_4H1[2], _Xi(50.0 / _Mq), _Xi(50.0 / _Mq));
for (_H3 = 0; _H3 <= 15; _H3++) {
_lB(_kH1, _V8 - 30 + _tH1(60), _W8 - 30 + _tH1(60), _4H1[2], _Sd, 1)
}
} else {
_zB(_4H1[1], _lH1);
_DB(_4H1[1], 0.4, 0.7, -0.01 * _Mq, 0);
_rj(_4H1[1], 0.4, 0);
_5C(_4H1[1], _Xi(30.0 / _Mq), _Xi(30.0 / _Mq));
for (_H3 = 0; _H3 <= 10; _H3++) {
_lB(_kH1, _V8 - 15 + _tH1(30), _W8 - 15 + _tH1(30), _4H1[1], _Sd, 1)
}
}
}
function _uH1(_kH1, _V8, _W8, __d, _Sd) {
var _H3;
var _Mq = _fH1();
if (__d === 0) {
_zB(_8H1[0], _lH1);
_DB(_8H1[0], 0.2, 0.4, -0.01 * _Mq, 0);
_rj(_8H1[0], 0.4, 0);
_dC(_8H1[0], 3.0 * _Mq, 4.0 * _Mq, 0, 0);
_fC(_8H1[0], 90, 90, 0, 0);
_5C(_8H1[0], _Xi(25.0 / _Mq), _Xi(25.0 / _Mq));
for (_H3 = 0; _H3 <= 5; _H3++) {
_lB(_kH1, _V8 - 5 + _tH1(10), _W8 - 5 + _tH1(10), _8H1[0], _Sd, 1)
}
} else if (__d === 2) {
_zB(_8H1[2], _lH1);
_DB(_8H1[2], 0.4, 1, -0.01 * _Mq, 0);
_rj(_8H1[2], 0.4, 0);
_dC(_8H1[2], 6.0 * _Mq, 7.0 * _Mq, 0, 0);
_fC(_8H1[2], 90, 90, 0, 0);
_5C(_8H1[2], _Xi(50.0 / _Mq), _Xi(50.0 / _Mq));
for (_H3 = 0; _H3 <= 15; _H3++) {
_lB(_kH1, _V8 - 30 + _tH1(60), _W8 - 30 + _tH1(60), _8H1[2], _Sd, 1)
}
} else {
_zB(_8H1[1], _lH1);
_DB(_8H1[1], 0.4, 0.7, -0.01 * _Mq, 0);
_rj(_8H1[1], 0.4, 0);
_dC(_8H1[1], 5.0 * _Mq, 6.0 * _Mq, 0, 0);
_fC(_8H1[1], 90, 90, 0, 0);
_5C(_8H1[1], _Xi(30.0 / _Mq), _Xi(30.0 / _Mq));
for (_H3 = 0; _H3 <= 10; _H3++) {
_lB(_kH1, _V8 - 15 + _tH1(30), _W8 - 15 + _tH1(30), _8H1[1], _Sd, 1)
}
}
}
function _vH1(_kH1, _V8, _W8, __d, _Sd) {
var _Mq = _fH1();
if (__d === 0) {
_zB(_9H1[0], _wH1);
_DB(_9H1[0], 0.4, 0.3, -0.02 * _Mq, 0);
_bC(_9H1[0], 0, 360, 0, 0, !1);
_5C(_9H1[0], _Xi(20 / _Mq), _Xi(20 / _Mq));
_lB(_kH1, _V8, _W8, _9H1[0], _Sd, 1)
} else if (__d === 2) {
_zB(_9H1[2], _wH1);
_DB(_9H1[2], 1.2, 1.2, -0.04 * _Mq, 0);
_bC(_9H1[2], 0, 360, 0, 0, !1);
_5C(_9H1[2], _Xi(30 / _Mq), _Xi(30 / _Mq));
_lB(_kH1, _V8, _W8, _9H1[2], _Sd, 1)
} else {
_zB(_9H1[1], _wH1);
_DB(_9H1[1], 0.75, 0.75, -0.03 * _Mq, 0);
_bC(_9H1[1], 0, 360, 0, 0, !1);
_5C(_9H1[1], _Xi(25 / _Mq), _Xi(25 / _Mq));
_lB(_kH1, _V8, _W8, _9H1[1], _Sd, 1)
}
}
function _xH1(_kH1, _V8, _W8, __d, _Sd) {
var _Mq = _fH1();
if (__d === 0) {
_zB(_aH1[0], _yH1);
_DB(_aH1[0], 0.4, 0.4, -0.02 * _Mq, 0);
_bC(_aH1[0], 0, 360, 0, 0, !1);
_5C(_aH1[0], _Xi(20 / _Mq), _Xi(20 / _Mq));
_lB(_kH1, _V8, _W8, _aH1[0], _Sd, 1)
} else if (__d === 2) {
_zB(_aH1[2], _yH1);
_DB(_aH1[2], 1.2, 1.2, -0.04 * _Mq, 0);
_bC(_aH1[2], 0, 360, 0, 0, !1);
_5C(_aH1[2], _Xi(30 / _Mq), _Xi(30 / _Mq));
_lB(_kH1, _V8, _W8, _aH1[2], _Sd, 1)
} else {
_zB(_aH1[1], _yH1);
_DB(_aH1[1], 0.75, 0.75, -0.03 * _Mq, 0);
_bC(_aH1[1], 0, 360, 0, 0, !1);
_5C(_aH1[1], _Xi(25 / _Mq), _Xi(25 / _Mq));
_lB(_kH1, _V8, _W8, _aH1[1], _Sd, 1)
}
}
function _zH1(_kH1, _V8, _W8, __d, _Sd) {
var _Mq = _fH1();
if (__d === 0) {
_zB(_bH1[0], _rH1);
_DB(_bH1[0], 0.4, 0.4, -0.02 * _Mq, 0);
_bC(_bH1[0], 0, 360, 0, 0, !1);
_5C(_bH1[0], _Xi(20 / _Mq), _Xi(20 / _Mq));
_lB(_kH1, _V8, _W8, _bH1[0], _Sd, 1)
} else if (__d === 2) {
_zB(_bH1[2], _rH1);
_DB(_bH1[2], 1.2, 1.2, -0.04 * _Mq, 0);
_bC(_bH1[2], 0, 360, 0, 0, !1);
_5C(_bH1[2], _Xi(30 / _Mq), _Xi(30 / _Mq));
_lB(_kH1, _V8, _W8, _bH1[2], _Sd, 1)
} else {
_zB(_bH1[1], _rH1);
_DB(_bH1[1], 0.75, 0.75, -0.03 * _Mq, 0);
_bC(_bH1[1], 0, 360, 0, 0, !1);
_5C(_bH1[1], _Xi(25 / _Mq), _Xi(25 / _Mq));
_lB(_kH1, _V8, _W8, _bH1[1], _Sd, 1)
}
}
function _AH1(_kH1, _V8, _W8, __d, _Sd) {
var _Mq = _fH1();
if (__d === 0) {
_zB(_cH1[0], _lH1);
_DB(_cH1[0], 2, 2, 0, 0);
_FB(_cH1[0], 1, 0.5);
_3C(_cH1[0], 0, 0.3, 0);
_5C(_cH1[0], _Xi(100.0 / _Mq), _Xi(100.0 / _Mq));
_lB(_kH1, _V8, _W8, _cH1[0], _Sd, 1)
} else if (__d === 2) {
_zB(_cH1[2], _lH1);
_DB(_cH1[2], 8, 8, 0, 0);
_FB(_cH1[2], 1, 0.5);
_3C(_cH1[2], 0, 0.3, 0);
_5C(_cH1[2], _Xi(100.0 / _Mq), _Xi(100.0 / _Mq));
_lB(_kH1, _V8, _W8, _cH1[02], _Sd, 1)
} else {
_zB(_cH1[1], _lH1);
_DB(_cH1[1], 4, 4, 0, 0);
_FB(_cH1[1], 1, 0.5);
_3C(_cH1[1], 0, 0.3, 0);
_5C(_cH1[1], _Xi(100.0 / _Mq), _Xi(100.0 / _Mq));
_lB(_kH1, _V8, _W8, _cH1[1], _Sd, 1)
}
}
function _BH1(_kH1, _V8, _W8, __d, _Sd) {
var _H3;
var _Mq = _fH1();
_zB(_dH1, _CH1);
_DB(_dH1, 0.2, 0.3, 0.0, 0.0);
_bC(_dH1, 0, 0, 0, 0, !0);
_dC(_dH1, 7 * _Mq, 7 * _Mq, 0, 0);
_fC(_dH1, 260, 260, 0, 0);
_0C(_dH1, 0.4);
_5C(_dH1, _Xi(0.2 * _H8._DR() / _Mq), _Xi(0.2 * _H8._DR() / _Mq));
if (__d === 0) {
for (_H3 = 0; _H3 <= 1; _H3++) {
_lB(_kH1, _tH1(1) * 1.2 * _H8._DH1(), -30.0 + _tH1(20), _dH1, _Sd, 1)
}
} else if (__d == 2) {
for (_H3 = 0; _H3 <= 8; _H3++) {
_lB(_kH1, _tH1(1) * 1.2 * _H8._DH1(), -30.0 + _tH1(20), _dH1, _Sd, 1)
}
} else {
for (_H3 = 0; _H3 <= 4; _H3++) {
_lB(_kH1, _tH1(1) * 1.2 * _H8._DH1(), -30.0 + _tH1(20), _dH1, _Sd, 1)
}
}
}
function _EH1(_kH1, _V8, _W8, __d, _Sd) {
var _H3;
var _Mq = _fH1();
_zB(_eH1, _FH1);
_DB(_eH1, 0.1, 0.25, 0.0, 0.0);
_0C(_eH1, 0.6);
_bC(_eH1, 0, 360, 0, 0, !1);
_dC(_eH1, 2.5 * _Mq, 3.0 * _Mq, 0.0, 0.0);
_fC(_eH1, 240, 300, 0, 20);
_5C(_eH1, _Xi(0.5 * _H8._DR() / _Mq), _Xi(0.5 * _H8._DR() / _Mq));
if (__d === 0) {
for (_H3 = 0; _H3 <= 0; _H3++) {
_lB(_kH1, _tH1(1) * 1.2 * _H8._DH1() - 60, -30.0 + _tH1(20), _eH1, _Sd, 1)
}
} else if (__d === 2) {
for (_H3 = 0; _H3 <= 6; _H3++) {
_lB(_kH1, _tH1(1) * 1.2 * _H8._DH1() - 60, -30.0 + _tH1(20), _eH1, _Sd, 1)
}
} else {
for (_H3 = 0; _H3 <= 2; _H3++) {
_lB(_kH1, _tH1(1) * 1.2 * _H8._DH1() - 60, -30.0 + _tH1(20), _eH1, _Sd, 1)
}
}
}
function _GH1(_HH1, _ud, _V8, _W8, __d, _Sd) {
var _nQ;
_hH1();
if (_HH1) {
_nQ = _QG1
} else {
_nQ = _RG1
}
switch (_ud) {
case _SG1:
_jH1(_nQ, _V8, _W8, __d, _Sd);
break;
case _TG1:
_nH1(_nQ, _V8, _W8, __d, _Sd);
break;
case _UG1:
_pH1(_nQ, _V8, _W8, __d, _Sd);
break;
case _VG1:
_qH1(_nQ, _V8, _W8, __d, _Sd);
break;
case _WG1:
_sH1(_nQ, _V8, _W8, __d, _Sd);
break;
case _XG1:
_uH1(_nQ, _V8, _W8, __d, _Sd);
break;
case _YG1:
_vH1(_nQ, _V8, _W8, __d, _Sd);
break;
case _ZG1:
_xH1(_nQ, _V8, _W8, __d, _Sd);
break;
case __G1:
_zH1(_nQ, _V8, _W8, __d, _Sd);
break;
case _0H1:
_AH1(_nQ, _V8, _W8, __d, _Sd);
break;
case _1H1:
_BH1(_nQ, _V8, _W8, __d, _Sd);
break;
case _2H1:
_EH1(_nQ, _V8, _W8, __d, _Sd);
break
}
}
var _IH1 = !1,
_qL = !1,
_JH1 = !0;
function _dp1(_KH1) {
if (_KH1) {
_IH1 = !0
} else {
_qL = !1;
_IH1 = !1;
if (_JH1) {
_Ro1 = !1
}
}
}
function _LH1() {
if (window["page"] === undefined) {
_JH1 = !1;
window.addEventListener("focus",
function() {
_dp1(!1)
});
window.addEventListener("blur",
function() {
_dp1(!0)
});
window.addEventListener("click",
function() {
_dp1(!1)
})
}
}
function _MH1() {
if (_IH1) {
_qL = !0;
_IH1 = !1
} else if (_qL) {
_qL = !1;
if (_JH1) {
_Ro1 = !0
}
}
}
function _NH1() {
var _Iy, _H3;
var _Jg = null;
if (_H8._Kg) {
_Jg = _H8._Mg
}
var _3i = _H8._Fy._3i;
for (var _OH1 = 0; _OH1 < _3i.length; _OH1++) {
var _Zi = _3i[_OH1];
var _Oy = _Zi._Oy;
if (!_Zi._uy) {
if (_Oy._PH1[_QH1]) {
if (_MF(_Zi._Ny) || _MF(_Zi._RH1)) {
_Iy = _Zi._SH1();
if ((_Iy._q9 < 0) || (_Iy.left > _H8._DH1()) || (_Iy.bottom < 0) || (_Iy.top > _H8._DR())) {
_Zi._g9(_QH1, _TH1, _Zi, _Zi)
}
} else {
if ((_Zi._f3 < 0) || (_Zi._f3 > _H8._DH1()) || (_Zi._g3 < 0) || (_Zi._g3 > _H8._DR())) {
_Zi._g9(_QH1, _TH1, _Zi, _Zi)
}
}
}
if (_Oy._PH1[_UH1]) {
if (_MF(_Zi._Ny) || _MF(_Zi._RH1)) {
_Iy = _Zi._SH1();
if ((_Iy.left < 0) || (_Iy._q9 > _H8._DH1()) || (_Iy.top < 0) || (_Iy.bottom > _H8._DR())) {
_Zi._g9(_UH1, _TH1, _Zi, _Zi)
}
} else {
if ((_Zi._f3 < 0) || (_Zi._f3 > _H8._DH1()) || (_Zi._g3 < 0) || (_Zi._g3 > _H8._DR())) {
_Zi._g9(_UH1, _TH1, _Zi, _Zi)
}
}
}
for (_H3 in _Jg) {
if (!_Jg.hasOwnProperty(_H3)) continue;
var _VH1 = parseInt(_H3);
var _WH1 = _Jg[_H3];
if (_WH1._Q3) {
var _XH1 = _WH1._jH;
var _YH1 = _WH1._kH;
var _ZH1 = _WH1._jH + _WH1._lH;
var __H1 = _WH1._kH + _WH1._mH;
if (_Oy._PH1[_0I1 + _VH1]) {
if (_MF(_Zi._Ny) || _MF(_Zi._RH1)) {
_Iy = _Zi._SH1();
if ((_Iy._q9 < _XH1) || (_Iy.left > _ZH1) || (_Iy.bottom < _YH1) || (_Iy.top > __H1)) {
_Zi._g9(_0I1 + _VH1, _TH1, _Zi, _Zi)
}
} else {
if ((_Zi._f3 < _XH1) || (_Zi._f3 > _ZH1) || (_Zi._g3 < _YH1) || (_Zi._g3 > __H1)) {
_Zi._g9(_0I1 + _VH1, _TH1, _Zi, _Zi)
}
}
}
if (_Oy._PH1[_1I1 + _VH1]) {
if (_MF(_Zi._Ny) || _MF(_Zi._RH1)) {
_Iy = _Zi._SH1();
if ((_Iy.left < _XH1) || (_Iy._q9 > _ZH1) || (_Iy.top < _YH1) || (_Iy.bottom > __H1)) {
_Zi._g9(_1I1 + _VH1, _TH1, _Zi, _Zi)
}
} else {
if ((_Zi._f3 < _XH1) || (_Zi._f3 > _ZH1) || (_Zi._g3 < _YH1) || (_Zi._g3 > __H1)) {
_Zi._g9(_1I1 + _VH1, _TH1, _Zi, _Zi)
}
}
}
}
}
}
}
}
function _2I1() {
for (var _Bv1 in _Cv1) {
if (!_Cv1.hasOwnProperty(_Bv1)) continue;
var _3I1 = _Ys._Gh(_Bv1);
var _4I1 = _3I1._AD();
for (var _av1 = 0; _av1 < _4I1.length; _av1++) {
var _5I1 = _4I1[_av1];
if (!_5I1._uy && _5I1._HY) {
var _6I1 = _Cv1[_Bv1];
for (var _7I1 in _6I1) {
if (!_6I1.hasOwnProperty(_7I1)) continue;
var _u81 = _6I1[_7I1];
var _8I1 = _Ys._Gh(_u81);
var _9I1 = _8I1._AD();
for (var _bv1 = 0; _bv1 < _9I1.length; _bv1++) {
var _aI1 = _9I1[_bv1];
if (!_aI1._uy && _aI1._HY) {
if ((_5I1._Oy == _aI1._Oy) && (_bv1 < _av1)) continue;
if (_5I1._zy(_aI1, !0)) {
if ((_5I1._SA) || (_aI1._SA)) {
_5I1._f3 = _5I1._bI1;
_5I1._g3 = _5I1._cI1;
_5I1._Gy = !0;
_5I1._dI1 = _5I1._eI1;
_aI1._f3 = _aI1._bI1;
_aI1._g3 = _aI1._cI1;
_aI1._Gy = !0;
_aI1._dI1 = _aI1._eI1
}
_5I1._g9(_jv1, _u81, _5I1, _aI1);
_aI1._g9(_jv1, _Bv1, _aI1, _5I1);
if ((_5I1._SA) || (_aI1._SA)) {
_5I1._Xu1();
_aI1._Xu1();
_5I1._te(_5I1._f3 + _5I1._H7, _5I1._g3 + _5I1._G7);
_aI1._te(_aI1._f3 + _aI1._H7, _aI1._g3 + _aI1._G7);
if (_5I1._zy(_aI1, !0) === !0) {
_5I1._f3 = _5I1._bI1;
_5I1._g3 = _5I1._cI1;
_5I1._Gy = !0;
_5I1._dI1 = _5I1._eI1;
_aI1._f3 = _aI1._bI1;
_aI1._g3 = _aI1._cI1;
_aI1._Gy = !0;
_aI1._dI1 = _aI1._eI1
}
}
}
}
}
}
}
}
}
}
function _fI1() {
if (_H8) {
var _Jg, _Dk;
if (!_H8._Kg) {
_Jg = _Lg
} else {
_Jg = _H8._Mg
}
for (var _xb = 0; _xb < _Jg.length; _xb++) {
_Ng = _Jg[_xb];
if (_Ng._Q3) {
_Og(canvas, _Pg);
if (((_dh._gI1 - _Pg.left) >= _Ng._Qg) && ((_dh._gI1 - _Pg.left) < _Ng._Rg) && ((_dh._hI1 - _Pg.top) >= _Ng._Sg) && ((_dh._hI1 - _Pg.top) < _Ng._Tg)) {
var _0a = _w6._h7;
var _2a = _w6._lL;
var _iI1 = _Ys._RA();
for (var _4s = 0; _4s < _iI1.length; _4s++) {
var _li = _iI1[_4s];
var _jI1 = _li._PH1;
if (_jI1[_kI1] || _jI1[_lI1] || _jI1[_mI1] || _jI1[_nI1] || _jI1[_oI1] || _jI1[_pI1] || _jI1[_qI1] || _jI1[_rI1] || _jI1[_sI1] || _jI1[_tI1] || _jI1[_uI1] || _jI1[_vI1] || _jI1[_wI1] || _jI1[_xI1]) {
if (_li._yI1.length > 0) {
var _zI1 = _li._yI1._3i.slice(0);
for (var _H3 = _zI1.length - 1; _H3 >= 0; _H3--) {
var _Ay = _zI1[_H3];
if (!_Ay._uy) {
{
if (_Ay._Gy) _Ay._Hy();
if (_Ay._AI1(_0a, _2a, !0)) {
var _BI1 = !0;
for (_Dk = 0; _Dk < 3; _Dk++) {
if (_dh._nf[_Dk]) {
if (_jI1[_kI1 + _Dk]) {
_Ay._g9(_kI1 + _Dk, 0, _Ay, _Ay)
}
_BI1 = !1
}
}
for (_Dk = 0; _Dk < 3; _Dk++) {
if (_dh._if[_Dk] === 1) {
if (_jI1[_nI1 + _Dk]) {
_Ay._g9(_nI1 + _Dk, 0, _Ay, _Ay)
}
_BI1 = !1
}
}
for (_Dk = 0; _Dk < 3; _Dk++) {
if (_dh._mf[_Dk] === 1) {
if (_jI1[_qI1 + _Dk]) {
_Ay._g9(_qI1 + _Dk, 0, _Ay, _Ay)
}
}
}
if (_BI1) {
_Ay._g9(_tI1, 0, _Ay, _Ay)
}
if (!_Ay._CI1) {
_Ay._g9(_uI1, 0, _Ay, _Ay);
_Ay._CI1 = !0
}
} else {
if (_Ay._CI1) {
_Ay._g9(_vI1, 0, _Ay, _Ay);
_Ay._CI1 = !1
}
}
}
}
}
}
}
}
for (_Dk = 0; _Dk < 3; _Dk++) {
if (_dh._nf[_Dk]) {
_dy._g9(_DI1 + _Dk, 0)
}
}
for (_Dk = 0; _Dk < 3; _Dk++) {
if (_dh._if[_Dk] === 1) {
_dy._g9(_EI1 + _Dk, 0)
}
}
for (_Dk = 0; _Dk < 3; _Dk++) {
if (_dh._mf[_Dk] === 1) {
_dy._g9(_FI1 + _Dk, 0)
}
}
if (_GI1) {
_dy._g9(_wI1, 0)
}
if (_HI1) {
_dy._g9(_xI1, 0)
}
}
}
}
}
}
function _II1() {
var _Hb, _Ib, __9;
var _3i = _H8._Fy._3i;
for (var _Zi = 0; _Zi < _3i.length; _Zi++) {
var _Ay = _3i[_Zi];
if (!_Ay._uy && (_Ay._JI1 >= 0)) {
if (!_Ay._KI1) {
var _ot = _pt._Gh(_Ay._JI1);
if ((_ot !== null) && (_ot !== undefined)) {
if (_Ay._LI1 > 0) {
_Hb = _ot._MI1(_Ay._NI1);
_Ay._NI1 += _Ay._LI1;
_Ib = _ot._MI1(_Ay._NI1);
for (__9 = _Hb; __9 < _Ib; __9++) {
_kt(_Ay, _Ay, _Ay._JI1, __9)
}
if (_Ay._OI1 && (_Ay._NI1 > _ot._PI1())) {
_Ay._NI1 = 0
}
} else {
_Hb = _ot._QI1(_Ay._NI1);
_Ay._NI1 += _Ay._LI1;
_Ib = _ot._QI1(_Ay._NI1);
for (__9 = _Hb; __9 > _Ib; __9--) {
_kt(_Ay, _Ay, _Ay._JI1, __9)
}
if (_Ay._OI1 && (_Ay._NI1 < 0)) {
_Ay._NI1 = _ot._PI1()
}
}
}
}
}
}
}
function _RI1() {
var _3i = _H8._Fy._3i;
for (var _Zi = 0; _Zi < _3i.length; _Zi++) {
var _Ay = _3i[_Zi];
if (!_Ay._uy) {
for (var _kb = 0; _kb < _SI1; _kb++) {
var event = _TI1 | (_kb + 1);
var _li = _Ay._Oy;
if (_li._PH1[event]) {
var _UI1;
_UI1 = ~~ (_Ay._47[_kb]);
if (_UI1 >= 0) {
_UI1--;
_Ay._47[_kb] = _UI1
}
if (_UI1 === 0) {
_Ay._g9(_TI1 | (_kb + 1), 0, _Ay, _Ay)
}
}
}
}
}
} (function(window) {
if (!Object.defineProperty) {
throw ("Font.js requires Object.defineProperty, which this browser does not support.")
}
if (!document.createElement("canvas").getContext) {
throw ("Font.js requires